mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Reimplement temp tables using schemas. The temp table map is history;
temp table entries in pg_class have the names the user would expect.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.142 2002/03/29 22:10:33 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.143 2002/03/31 06:26:31 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -49,7 +49,6 @@
|
||||
#include "utils/acl.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/syscache.h"
|
||||
#include "utils/temprel.h"
|
||||
#include "access/xlog.h"
|
||||
|
||||
/*
|
||||
@@ -128,8 +127,7 @@ CheckDropPermissions(RangeVar *rel, char rightkind)
|
||||
elog(ERROR, "you do not own %s \"%s\"",
|
||||
rentry->name, rel->relname);
|
||||
|
||||
if (!allowSystemTableMods && IsSystemRelationName(rel->relname) &&
|
||||
!is_temp_relname(rel->relname))
|
||||
if (!allowSystemTableMods && IsSystemRelationName(rel->relname))
|
||||
elog(ERROR, "%s \"%s\" is a system %s",
|
||||
rentry->name, rel->relname, rentry->name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user