postgresql/src/bin
Michael Paquier 344487e2db Tweak behavior of pg_dump --extension with configuration tables
6568cef, that introduced the option, had an inconsistent behavior when
it comes to configuration tables set up by pg_extension_config_dump, as
the data of all configuration tables would included in a dump even for
extensions not listed by a set of --extension switches.

The contents dumped changed depending on the schema where an extension
was installed when an extension was not listed.  For example, an
extension installed under the public schema would have its configuration
data not dumped even when not listed with --extension, which was
inconsistent with the case of an extension installed on a non-public
schema, where the configuration would be dumped.

Per discussion with Noah, we have settled down to the simple rule of
dumping configuration data of an extension if it is listed in
--extension (default is unchanged and backward-compatible, to dump
everything on sight if there are no extensions directly listed).  This
avoids some weird cases where the dumps depended on a --schema for one.

More tests are added to cover the gap, where we cross-check more
behaviors depending on --schema when an extension is not listed.

Reported-by: Noah Misch
Reviewed-by: Noah Misch
Discussion: https://postgr.es/m/20210404220802.GA728316@rfd.leadboat.com
2021-04-15 10:03:46 +09:00
..
initdb Improve consistency of SQL code capitalization 2021-03-27 10:17:12 +01:00
pg_amcheck amcheck: Reword some messages and fix an alignment problem. 2021-04-14 12:46:31 -04:00
pg_archivecleanup Improve common/logging.c's support for multiple verbosity levels. 2020-09-17 12:52:18 -04:00
pg_basebackup Blindly try to fix test script's tar invocation for MSYS. 2021-03-18 22:43:11 -04:00
pg_checksums pg_checksums: Fix progress reporting. 2021-04-03 00:07:00 +09:00
pg_config Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_controldata Simplify printing of LSNs 2021-02-23 10:27:02 +01:00
pg_ctl Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_dump Tweak behavior of pg_dump --extension with configuration tables 2021-04-15 10:03:46 +09:00
pg_resetwal Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_rewind Fix files references in nls.mk 2021-04-12 15:44:38 +02:00
pg_test_fsync Use pg_pwrite() in pg_test_fsync. 2021-02-15 15:23:12 +13:00
pg_test_timing Clean up after newly-added tests for pg_test_fsync and pg_test_timing. 2020-10-07 13:27:33 -04:00
pg_upgrade pg_upgrade: Print OID using %u instead of %d 2021-04-12 20:29:24 +02:00
pg_verifybackup Simplify printing of LSNs 2021-02-23 10:27:02 +01:00
pg_waldump Add circular WAL decoding buffer. 2021-04-08 23:20:42 +12:00
pgbench pgbench: Function to generate random permutations. 2021-04-06 11:50:42 +01:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Support tab-complete for TRUNCATE on foreign tables. 2021-04-12 21:34:23 +09:00
scripts Refactor and generalize the ParallelSlot machinery. 2021-03-11 13:17:46 -05:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00