Doc: update documentation of check_function_bodies.
authorTom Lane
Sat, 10 Apr 2021 16:08:28 +0000 (12:08 -0400)
committerTom Lane
Sat, 10 Apr 2021 16:08:28 +0000 (12:08 -0400)
Adjust docs and description string to note that check_function_bodies
applies to procedures too.  (In hindsight it should have been named
check_routine_bodies, but it seems too late for that now.)

Daniel Westermann

Discussion: https://postgr.es/m/GV0P278MB04834A9EB9A74B036DC7CE49D2739@GV0P278MB0483.CHEP278.PROD.OUTLOOK.COM

doc/src/sgml/config.sgml
src/backend/utils/misc/guc.c

index cc18b0bbf0aa86a8f8f5d67dc83a5f4306cfd08b..5bdb8650cc2839700044dc4610a1fa7b2be451fb 100644 (file)
@@ -8415,10 +8415,12 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
       
        
         This parameter is normally on. When set to off, it
-        disables validation of the function body string during 
-        linkend="sql-createfunction"/>.  Disabling validation avoids side
-        effects of the validation process and avoids false positives due
-        to problems such as forward references.  Set this parameter
+        disables validation of the routine body string during 
+        linkend="sql-createfunction"/> and 
+        linkend="sql-createprocedure"/>.  Disabling validation avoids side
+        effects of the validation process, in particular preventing false
+        positives due to problems such as forward references.
+        Set this parameter
         to off before loading functions on behalf of other
         users; pg_dump does so automatically.
        
@@ -9954,7 +9956,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
         When set to on, which is the default,
         PostgreSQL will automatically remove
         temporary files after a backend crash. If disabled, the files will be
-        retained and may be used for debugging, for example. Repeated crashes 
+        retained and may be used for debugging, for example. Repeated crashes
         may however result in accumulation of useless files.
        
       
index ca378bd6afb21c222902022b57e9cc143417d6c8..d0a51b507d77ba408d65f53fece6e4ec30673959 100644 (file)
@@ -1759,7 +1759,7 @@ static struct config_bool ConfigureNamesBool[] =
    },
    {
        {"check_function_bodies", PGC_USERSET, CLIENT_CONN_STATEMENT,
-           gettext_noop("Check function bodies during CREATE FUNCTION."),
+           gettext_noop("Check routine bodies during CREATE FUNCTION and CREATE PROCEDURE."),
            NULL
        },
        &check_function_bodies,