1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Add GUC parameter check_function_bodies to control whether validation

of function bodies is done at CREATE FUNCTION time.  This is normally
true but can be set false to avoid problems with forward references,
wrong schema search path, etc.  This is just the backend patch, still
need to adjust pg_dump to make use of it.
This commit is contained in:
Tom Lane
2003-10-03 19:26:49 +00:00
parent 251033186f
commit 15c194c1d5
4 changed files with 66 additions and 27 deletions

View File

@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.161 2003/09/29 00:05:25 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.162 2003/10/03 19:26:49 tgl Exp $
*
*--------------------------------------------------------------------
*/
@ -66,6 +66,7 @@
/* XXX these should appear in other modules' header files */
extern bool Log_connections;
extern bool check_function_bodies;
extern int PreAuthDelay;
extern int AuthenticationTimeout;
extern int CheckPointTimeout;
@ -821,6 +822,14 @@ static struct config_bool ConfigureNamesBool[] =
&add_missing_from,
true, NULL, NULL
},
{
{"check_function_bodies", PGC_USERSET, CLIENT_CONN_STATEMENT,
gettext_noop("check function bodies during CREATE FUNCTION"),
NULL
},
&check_function_bodies,
true, NULL, NULL
},
/* End-of-list marker */
{