aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/fastpath.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-09-03 01:26:52 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-09-03 01:26:52 +0000
commit8ab6a6b4562efcd9f320353d5438fdbe10dbf9c5 (patch)
tree9c81a506bc296d1a3df6a381794453a60f90fb54 /src/backend/tcop/fastpath.c
parentc89a1198f90924ecdcc0f7e4cdd2e307e66ff856 (diff)
downloadpostgresql-8ab6a6b4562efcd9f320353d5438fdbe10dbf9c5.tar.gz
postgresql-8ab6a6b4562efcd9f320353d5438fdbe10dbf9c5.zip
In HEAD only, revert kluge solution for preventing misuse of pg_get_expr().
A data-type-based solution, which is much cleaner and more bulletproof, will follow shortly. It seemed best to make this a separate commit though.
Diffstat (limited to 'src/backend/tcop/fastpath.c')
-rw-r--r--src/backend/tcop/fastpath.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c
index 5870081fe30..a5c5a309828 100644
--- a/src/backend/tcop/fastpath.c
+++ b/src/backend/tcop/fastpath.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/fastpath.c,v 1.105 2010/07/06 19:18:57 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/fastpath.c,v 1.106 2010/09/03 01:26:52 tgl Exp $
*
* NOTES
* This cruft is the server side of PQfn.
@@ -29,7 +29,6 @@
#include "tcop/fastpath.h"
#include "tcop/tcopprot.h"
#include "utils/acl.h"
-#include "utils/fmgroids.h"
#include "utils/lsyscache.h"
#include "utils/snapmgr.h"
#include "utils/syscache.h"
@@ -349,16 +348,6 @@ HandleFunctionRequest(StringInfo msgBuf)
get_func_name(fid));
/*
- * Restrict access to pg_get_expr(). This reflects the hack in
- * transformFuncCall() in parse_expr.c, see comments there for an
- * explanation.
- */
- if ((fid == F_PG_GET_EXPR || fid == F_PG_GET_EXPR_EXT) && !superuser())
- ereport(ERROR,
- (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- errmsg("argument to pg_get_expr() must come from system catalogs")));
-
- /*
* Prepare function call info block and insert arguments.
*/
InitFunctionCallInfoData(fcinfo, &fip->flinfo, 0, NULL, NULL);