File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 66 * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
9- * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.68 2000/09 /19 18:17:54 petere Exp $
9+ * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.69 2000/10 /19 03:55:51 tgl Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -600,6 +600,14 @@ DropUser(DropUserStmt *stmt)
600600 }
601601 heap_endscan (scan );
602602 heap_close (pg_rel , AccessExclusiveLock );
603+ /*
604+ * Advance command counter so that later iterations of this loop
605+ * will see the changes already made. This is essential if, for
606+ * example, we are trying to drop two users who are members of the
607+ * same group --- the AlterGroup for the second user had better
608+ * see the tuple updated from the first one.
609+ */
610+ CommandCounterIncrement ();
603611 }
604612
605613 /*
@@ -643,8 +651,6 @@ CheckPgUserAclNotNull()
643651 "Try 'REVOKE ALL ON \"%s\" FROM PUBLIC'." ,
644652 ShadowRelationName , ShadowRelationName );
645653 }
646-
647- return ;
648654}
649655
650656
You can’t perform that action at this time.
0 commit comments