pgsql: Fix stop condition for dumping GRANT commands

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix stop condition for dumping GRANT commands
Date: 2023-04-26 12:27:51
Message-ID: E1preFS-005033-8X@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)pgug(dot)de>
Co-authored-by: Artur Zakirov <zaartur(at)gmail(dot)com>
Discussion: https://postgr.es/m/de44299d-cd31-b41f-2c2a-161fa5e586a5@pgug.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7b7fa85130330128b404eddebd4f33c6739454b0

Modified Files
--------------
src/bin/pg_dump/pg_dumpall.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2023-04-26 13:59:05 issue with meson builds on msys2
Previous Message Etsuro Fujita 2023-04-26 11:23:17 pgsql: doc: Fix grammar.