aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/functioncmds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2002-05-18 13:48:01 +0000
committerPeter Eisentraut <peter_e@gmx.net>2002-05-18 13:48:01 +0000
commite8ac187c68fdfcda800132d6c3c2e6d45aaf563f (patch)
treeb98c604540812213053399613979d5048f0d2916 /src/backend/commands/functioncmds.c
parent51fd22abdd9582e5b0edd545be93306a3edf0048 (diff)
downloadpostgresql-e8ac187c68fdfcda800132d6c3c2e6d45aaf563f.tar.gz
postgresql-e8ac187c68fdfcda800132d6c3c2e6d45aaf563f.zip
Allow functions to be executed with the privileges of the function owner.
I took the opportunity to remove the pg_proc.proistrusted field.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
-rw-r--r--src/backend/commands/functioncmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c
index e294b6f973e..06870b0d3d2 100644
--- a/src/backend/commands/functioncmds.c
+++ b/src/backend/commands/functioncmds.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.4 2002/05/17 18:32:52 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.5 2002/05/18 13:47:59 petere Exp $
*
* DESCRIPTION
* These routines take the parse tree and pick out the
@@ -421,6 +421,7 @@ CreateFunction(CreateFunctionStmt *stmt)
outin_ratio = OUTIN_RATIO;
isImplicit = false;
isStrict = false;
+ security = false;
volatility = PROVOLATILE_VOLATILE;
/* override attributes from explicit list */
@@ -489,7 +490,7 @@ CreateFunction(CreateFunctionStmt *stmt)
prosrc_str, /* converted to text later */
probin_str, /* converted to text later */
false, /* not an aggregate */
- true, /* (obsolete "trusted") */
+ security,
isImplicit,
isStrict,
volatility,