diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-10-19 03:55:51 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-10-19 03:55:51 +0000 |
commit | ee0bcb8c5e558d813a12d39d001709cf14ae18a9 (patch) | |
tree | 152bd48cd308cce0a91d055ec07a07e7c25884c6 | |
parent | 3649c75241de42d545421b58fa922dc10486491d (diff) | |
download | postgresql-ee0bcb8c5e558d813a12d39d001709cf14ae18a9.tar.gz postgresql-ee0bcb8c5e558d813a12d39d001709cf14ae18a9.zip |
Fix missing CommandCounterIncrement in DROP USER.
-rw-r--r-- | src/backend/commands/user.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index cc57eb7068c..55064bf5126 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.68 2000/09/19 18:17:54 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.69 2000/10/19 03:55:51 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -600,6 +600,14 @@ DropUser(DropUserStmt *stmt) } heap_endscan(scan); heap_close(pg_rel, AccessExclusiveLock); + /* + * Advance command counter so that later iterations of this loop + * will see the changes already made. This is essential if, for + * example, we are trying to drop two users who are members of the + * same group --- the AlterGroup for the second user had better + * see the tuple updated from the first one. + */ + CommandCounterIncrement(); } /* @@ -643,8 +651,6 @@ CheckPgUserAclNotNull() "Try 'REVOKE ALL ON \"%s\" FROM PUBLIC'.", ShadowRelationName, ShadowRelationName); } - - return; } |