Skip to content

Commit ee0bcb8

Browse files
committed
Fix missing CommandCounterIncrement in DROP USER.
1 parent 3649c75 commit ee0bcb8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/backend/commands/user.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy