diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-06-12 03:41:03 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-06-12 03:41:03 +0000 |
commit | 3357e1d29e2d9be495510e1b2f56e8d762b91d2b (patch) | |
tree | 4b659f2bb2af581e3483f024eee344a76547f200 /src/backend/tcop/pquery.c | |
parent | 64948dbe1599a25bc9561617d0465cc523bc59fb (diff) | |
download | postgresql-3357e1d29e2d9be495510e1b2f56e8d762b91d2b.tar.gz postgresql-3357e1d29e2d9be495510e1b2f56e8d762b91d2b.zip |
Back out pg_shadow changes to allow create table and locking permissions.
Diffstat (limited to 'src/backend/tcop/pquery.c')
-rw-r--r-- | src/backend/tcop/pquery.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c index 8fec7766a44..b26923b6f14 100644 --- a/src/backend/tcop/pquery.c +++ b/src/backend/tcop/pquery.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.33 2000/06/09 15:50:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.34 2000/06/12 03:40:40 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -20,9 +20,6 @@ #include "executor/executor.h" #include "tcop/pquery.h" #include "utils/ps_status.h" -#include "catalog/pg_shadow.h" -#include "miscadmin.h" -#include "utils/syscache.h" static char *CreateOperationTag(int operationType); static void ProcessQueryDesc(QueryDesc *queryDesc, Node *limoffset, @@ -253,23 +250,6 @@ ProcessQueryDesc(QueryDesc *queryDesc, Node *limoffset, Node *limcount) else if (parseTree->into != NULL) { /* select into table */ - - if (!parseTree->isTemp) { - HeapTuple tup; - - /* ---------- - * Check pg_shadow for global createTable setting - * ---------- - */ - tup = SearchSysCacheTuple(SHADOWNAME, PointerGetDatum(GetPgUserName()), 0, 0, 0); - - if (!HeapTupleIsValid(tup)) - elog(ERROR, "ProcessQueryDesc: look at pg_shadow failed"); - - if (!((Form_pg_shadow) GETSTRUCT(tup))->usecreatetable) - elog(ERROR, "SELECT INTO TABLE: permission denied"); - } - isRetrieveIntoRelation = true; } |