postgresql/src/bin/pg_dump
Alvaro Herrera 93ad00c968 Dump foreign keys on partitioned tables
The patch that ended up as commit 3de241dba8 ("Foreign keys on
partitioned tables") lacked pg_dump tests, so the pg_dump code that was
there to support it inadvertently stopped working when in later
development I modified the backend code not to emit pg_trigger rows for
the partitioned table itself.

Bug analysis and code fix is by Michaël.  I (Álvaro) added the test.

Reported-by: amul sul <sulamul@gmail.com>
Co-authored-by: Michaël Paquier <michael@paquier.xyz>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CAAJ_b94n=UsNVhgs97vCaWEZAMe-tGDRVuZ73oePQH=eaJKGSA@mail.gmail.com
2018-07-13 13:13:26 -04:00
..
po Translation updates 2018-05-21 12:29:52 -04:00
t Dump foreign keys on partitioned tables 2018-07-13 13:13:26 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
compress_io.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
compress_io.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
dumputils.c Fix mishandling of quoted-list GUC values in pg_dump and ruleutils.c. 2018-03-21 20:03:28 -04:00
dumputils.h Fix mishandling of quoted-list GUC values in pg_dump and ruleutils.c. 2018-03-21 20:03:28 -04:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
nls.mk Translation updates 2018-05-21 12:29:52 -04:00
parallel.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
parallel.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_backup_archiver.c Fix more format truncation issues 2018-03-15 11:41:42 -04:00
pg_backup_archiver.h Avoid using unsafe search_path settings during dump and restore. 2018-02-26 10:18:21 -05:00
pg_backup_custom.c Fix typo in comment 2018-03-29 19:10:04 +02:00
pg_backup_db.c Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
pg_backup_db.h Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
pg_backup_directory.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_backup_null.c Reduce excessive dereferencing of function pointers 2017-09-07 13:56:09 -04:00
pg_backup_tar.c Fix more format truncation issues 2018-03-15 11:41:42 -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 Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_backup_utils.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_backup.h Add pg_dump --on-conflict-do-nothing option. 2018-07-13 13:57:03 +12:00
pg_dump_sort.c Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h. 2018-04-08 13:59:52 -04:00
pg_dump.c Dump foreign keys on partitioned tables 2018-07-13 13:13:26 -04:00
pg_dump.h pgindent run prior to branching 2018-06-30 12:25:49 -04:00
pg_dumpall.c Add pg_dump --on-conflict-do-nothing option. 2018-07-13 13:57:03 +12:00
pg_restore.c Fix description and documentation related to pg_restore --no-comments 2018-06-26 14:57:53 +09:00