Fix stop condition for dumping GRANT commands

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 7b7fa85130330128b404eddebd4f33c6739454b0
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2023-04-26T12:24:13Z
Releases: 16.0
Fix stop condition for dumping GRANT commands

Commit ce6b672e44 changed dumping GRANT commands to ensure that
grantors already have an ADMIN OPTION on the role for which it
is granting permissions. Looping over the grants per role has a
stop condition on dumping the grant statements, but accidentally
missed updating the variable for the conditional check.

Author: Andreas Scherbaum <ads@pgug.de>
Co-authored-by: Artur Zakirov <zaartur@gmail.com>
Discussion: https://postgr.es/m/de44299d-cd31-b41f-2c2a-161fa5e586a5@pgug.de

Files

PathChange+/−
src/bin/pg_dump/pg_dumpall.c modified +1 −0

Discussion