pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix ordering of GRANT commands in pg_dumpall for database creati 8+ messages / 1 participants [nested] [flat]
* pgsql: Fix ordering of GRANT commands in pg_dump for database creation @ 2019-05-22 05:57 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-22 05:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dump for database creation This uses a method similar to 68a7c24f, which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. As databases do not have support for initial privileges via pg_init_privs, we need to repeat again the same ACL reordering method. ACL for databases have been moved from pg_dumpall to pg_dump in v11, so this impacts pg_dump for v11 and above, and pg_dumpall for v9.6 and v10. Discussion: https://postgr.es/m/15788-4e18847520ebcc75@postgresql.org Author: Nathan Bossart Reviewed-by: Haribabu Kommi Backpatch-through: 9.6 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b8c6014a65ee0819e8fe4c7536f72da0df5d8e46 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dump for database creation @ 2019-05-22 05:57 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-22 05:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dump for database creation This uses a method similar to 68a7c24f, which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. As databases do not have support for initial privileges via pg_init_privs, we need to repeat again the same ACL reordering method. ACL for databases have been moved from pg_dumpall to pg_dump in v11, so this impacts pg_dump for v11 and above, and pg_dumpall for v9.6 and v10. Discussion: https://postgr.es/m/15788-4e18847520ebcc75@postgresql.org Author: Nathan Bossart Reviewed-by: Haribabu Kommi Backpatch-through: 9.6 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8357a413f439887ef243f9efd2417b1a7409e694 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dumpall for database creati @ 2019-05-22 05:57 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-22 05:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dumpall for database creation This uses a method similar to 68a7c24f, which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. As databases do not have support for initial privileges via pg_init_privs, we need to repeat again the same ACL reordering method. ACL for databases have been moved from pg_dumpall to pg_dump in v11, so this impacts pg_dump for v11 and above, and pg_dumpall for v9.6 and v10. Discussion: https://postgr.es/m/15788-4e18847520ebcc75@postgresql.org Author: Nathan Bossart Reviewed-by: Haribabu Kommi Backpatch-through: 9.6 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0c2a5a86263c07ed1ae7a2fa032e0412961e412e Modified Files -------------- src/bin/pg_dump/pg_dumpall.c | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dumpall for database creati @ 2019-05-22 05:57 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-22 05:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dumpall for database creation This uses a method similar to 68a7c24f, which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. As databases do not have support for initial privileges via pg_init_privs, we need to repeat again the same ACL reordering method. ACL for databases have been moved from pg_dumpall to pg_dump in v11, so this impacts pg_dump for v11 and above, and pg_dumpall for v9.6 and v10. Discussion: https://postgr.es/m/15788-4e18847520ebcc75@postgresql.org Author: Nathan Bossart Reviewed-by: Haribabu Kommi Backpatch-through: 9.6 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a21fb12e7cc3e5ef976a384e7e7295d7e9b7460d Modified Files -------------- src/bin/pg_dump/pg_dumpall.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces @ 2019-05-23 01:51 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-23 01:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dumpall for tablespaces This uses a method similar to 68a7c24f and now b8c6014 (applied for database creation), which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. Note that tablespaces do not have support for initial privileges via pg_init_privs, so the same method needs to be applied again. It would be nice to merge all the logic generating ACL queries in dumps under the same banner, but this requires extending the support of pg_init_privs to objects that cannot use it yet, so this is left as future work. Discussion: https://postgr.es/m/20190522071555.GB1278@paquier.xyz Author: Michael Paquier Reviewed-by: Nathan Bossart Backpatch-through: 9.6 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/156c0c2dff403fd115f3a5f6d73ab80959c84129 Modified Files -------------- src/bin/pg_dump/pg_dumpall.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces @ 2019-05-23 01:51 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-23 01:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dumpall for tablespaces This uses a method similar to 68a7c24f and now b8c6014 (applied for database creation), which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. Note that tablespaces do not have support for initial privileges via pg_init_privs, so the same method needs to be applied again. It would be nice to merge all the logic generating ACL queries in dumps under the same banner, but this requires extending the support of pg_init_privs to objects that cannot use it yet, so this is left as future work. Discussion: https://postgr.es/m/20190522071555.GB1278@paquier.xyz Author: Michael Paquier Reviewed-by: Nathan Bossart Backpatch-through: 9.6 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a7b2fca15b2552e004c9c1af2bbf07d0d8ef7a8b Modified Files -------------- src/bin/pg_dump/pg_dumpall.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces @ 2019-05-23 01:51 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-23 01:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dumpall for tablespaces This uses a method similar to 68a7c24f and now b8c6014 (applied for database creation), which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. Note that tablespaces do not have support for initial privileges via pg_init_privs, so the same method needs to be applied again. It would be nice to merge all the logic generating ACL queries in dumps under the same banner, but this requires extending the support of pg_init_privs to objects that cannot use it yet, so this is left as future work. Discussion: https://postgr.es/m/20190522071555.GB1278@paquier.xyz Author: Michael Paquier Reviewed-by: Nathan Bossart Backpatch-through: 9.6 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2ccebcd23689779b97db1375d038b50bed8dcd68 Modified Files -------------- src/bin/pg_dump/pg_dumpall.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
* pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces @ 2019-05-23 01:51 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 8+ messages in thread From: Michael Paquier @ 2019-05-23 01:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix ordering of GRANT commands in pg_dumpall for tablespaces This uses a method similar to 68a7c24f and now b8c6014 (applied for database creation), which guarantees that GRANT commands using the WITH GRANT OPTION are dumped in a way so as cascading dependencies are respected. Note that tablespaces do not have support for initial privileges via pg_init_privs, so the same method needs to be applied again. It would be nice to merge all the logic generating ACL queries in dumps under the same banner, but this requires extending the support of pg_init_privs to objects that cannot use it yet, so this is left as future work. Discussion: https://postgr.es/m/20190522071555.GB1278@paquier.xyz Author: Michael Paquier Reviewed-by: Nathan Bossart Backpatch-through: 9.6 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c82e8ba0016319bb7c18ace7a9a77a7d7550f997 Modified Files -------------- src/bin/pg_dump/pg_dumpall.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2019-05-23 01:51 UTC | newest] Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-05-22 05:57 pgsql: Fix ordering of GRANT commands in pg_dump for database creation Michael Paquier <michael@paquier.xyz> 2019-05-22 05:57 pgsql: Fix ordering of GRANT commands in pg_dump for database creation Michael Paquier <michael@paquier.xyz> 2019-05-22 05:57 pgsql: Fix ordering of GRANT commands in pg_dumpall for database creati Michael Paquier <michael@paquier.xyz> 2019-05-22 05:57 pgsql: Fix ordering of GRANT commands in pg_dumpall for database creati Michael Paquier <michael@paquier.xyz> 2019-05-23 01:51 pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces Michael Paquier <michael@paquier.xyz> 2019-05-23 01:51 pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces Michael Paquier <michael@paquier.xyz> 2019-05-23 01:51 pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces Michael Paquier <michael@paquier.xyz> 2019-05-23 01:51 pgsql: Fix ordering of GRANT commands in pg_dumpall for tablespaces Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox