postgresql/src/bin/pg_dump
Alvaro Herrera 5992c94dc7
Fix pg_dump for disabled triggers on partitioned tables
pg_dump failed to preserve the 'enabled' flag (which can be not only
disabled, but also REPLICA or ALWAYS) for partitions which had it
changed from their respective parents.  Attempt to handle that by
including a definition for such triggers in the dump, but replace the
standard CREATE TRIGGER line with an ALTER TRIGGER line.

Backpatch to 11, where these triggers can exist.  In branches 11 and 12,
pick up a few test lines from commit b9b408c487 to verify that
pg_upgrade is okay with these arrangements.

Co-authored-by: Justin Pryzby <pryzby@telsasoft.com>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20200930223450.GA14848@telsasoft.com
2021-07-16 17:29:22 -04:00
..
po Translation updates 2021-05-10 14:30:04 +02:00
t Fix pg_dump for disabled triggers on partitioned tables 2021-07-16 17:29:22 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c pg_dump: Fix dump of generated columns in partitions 2021-05-04 14:18:33 +02:00
compress_io.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
compress_io.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
dumputils.c Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:39 -08:00
dumputils.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
Makefile Update copyright for 2019 2019-01-02 12:44:25 -05:00
nls.mk Translation updates 2020-05-11 13:19:18 +02:00
parallel.c In libpq for Windows, call WSAStartup once and WSACleanup not at all. 2020-10-19 11:23:51 -04:00
parallel.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pg_backup.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_archiver.c Work around portability issue with newer versions of mktime(). 2021-06-13 14:32:42 -04:00
pg_backup_archiver.h Fix pg_restore's misdesigned code for detecting archive file format. 2021-04-01 13:34:16 -04:00
pg_backup_custom.c Cope with data-offset-less archive files during out-of-order restores. 2020-07-17 13:03:50 -04:00
pg_backup_db.c Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_directory.c Ensure write failure reports no-disk-space 2020-06-19 16:46:07 -04:00
pg_backup_null.c Fix typos. 2019-05-24 12:00:59 +12:00
pg_backup_tar.c Fix pg_restore's misdesigned code for detecting archive file format. 2021-04-01 13:34:16 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_backup_utils.h Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
pg_dump.c Fix pg_dump for disabled triggers on partitioned tables 2021-07-16 17:29:22 -04:00
pg_dump.h Fix pg_dump for disabled triggers on partitioned tables 2021-07-16 17:29:22 -04:00
pg_dump_sort.c Fix pg_dump/pg_restore to restore event triggers later. 2020-03-09 14:58:11 -04:00
pg_dumpall.c Report the true database name on connection errors 2021-01-26 16:42:13 -03:00
pg_restore.c Fix handling of -d "connection string" in pg_dump/pg_restore. 2020-09-24 18:19:38 -04:00