aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/utility.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-06-18 16:13:21 +0000
committerBruce Momjian <bruce@momjian.us>2001-06-18 16:13:21 +0000
commit49ce6fff1d3415257404899e30733aefdfee2a06 (patch)
treeb1cd9330291d36847214c4d500ded1ff4df2eb50 /src/backend/tcop/utility.c
parent0bba6bdb8adc961002e4644487d367724a0afe57 (diff)
downloadpostgresql-49ce6fff1d3415257404899e30733aefdfee2a06.tar.gz
postgresql-49ce6fff1d3415257404899e30733aefdfee2a06.zip
Allow removal of system-named pg_* temp tables. Rename temp file/dir as
pgsql_tmp.
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r--src/backend/tcop/utility.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index bef1d6844a0..5be50e7aade 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.113 2001/06/09 23:21:54 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.114 2001/06/18 16:13:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -46,6 +46,7 @@
#include "utils/acl.h"
#include "utils/ps_status.h"
#include "utils/syscache.h"
+#include "utils/temprel.h"
#include "access/xlog.h"
/*
@@ -120,7 +121,8 @@ CheckDropPermissions(char *name, char rightkind)
elog(ERROR, "you do not own %s \"%s\"",
rentry->name, name);
- if (!allowSystemTableMods && IsSystemRelationName(name))
+ if (!allowSystemTableMods && IsSystemRelationName(name) &&
+ !is_temp_relname(name))
elog(ERROR, "%s \"%s\" is a system %s",
rentry->name, name, rentry->name);