summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-07-31 15:50:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-07-31 15:50:07 +0000
commit59bb0282d46f58e3cf29c8c7730030386d9e65cc (patch)
tree7a0654a7512f5bf7f9b245ada2db529ce0f19d38 /src
parent5fd6d0fd196c71894879dcf15f72259f339d859d (diff)
Fix security definer functions with polymorphic arguments. This case has
never worked because fmgr_security_definer() neglected to pass the fn_expr information through. Per report from Viatcheslav Kalinin.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/fmgr/fmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/fmgr/fmgr.c b/src/backend/utils/fmgr/fmgr.c
index 1eafe09644e..086daede324 100644
--- a/src/backend/utils/fmgr/fmgr.c
+++ b/src/backend/utils/fmgr/fmgr.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/fmgr/fmgr.c,v 1.88.4.1 2005/02/02 22:40:17 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/fmgr/fmgr.c,v 1.88.4.2 2007/07/31 15:50:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -800,6 +800,7 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
fmgr_info_cxt_security(fcinfo->flinfo->fn_oid, &fcache->flinfo,
fcinfo->flinfo->fn_mcxt, true);
+ fcache->flinfo.fn_expr = fcinfo->flinfo->fn_expr;
tuple = SearchSysCache(PROCOID,
ObjectIdGetDatum(fcinfo->flinfo->fn_oid),