From c1003339d6899535b455951b875565e5e73f2f7d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 7 Aug 2002 21:45:02 +0000 Subject: Fix permission checking for temp-table namespace. --- src/backend/commands/indexcmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/indexcmds.c') diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 9edebc1e690..584df00d78d 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.80 2002/08/02 18:15:06 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.81 2002/08/07 21:45:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -119,9 +119,9 @@ DefineIndex(RangeVar *heapRelation, * Verify we (still) have CREATE rights in the rel's namespace. * (Presumably we did when the rel was created, but maybe not anymore.) * Skip check if bootstrapping, since permissions machinery may not - * be working yet; also, always allow if it's a temp table. + * be working yet. */ - if (!IsBootstrapProcessingMode() && !isTempNamespace(namespaceId)) + if (!IsBootstrapProcessingMode()) { AclResult aclresult; -- cgit v1.2.3