]> granicus.if.org Git - postgresql/commit
Dump foreign keys on partitioned tables
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 13 Jul 2018 17:13:26 +0000 (13:13 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 13 Jul 2018 17:15:29 +0000 (13:15 -0400)
commit2af39c39df94096ecc593f5a162947e1e994cab3
tree369d8b673e3f613d428040407904a987b2922c13
parent5586e42b349346df5d88f71a5a41d8cb76b8c491
Dump foreign keys on partitioned tables

The patch that ended up as commit 3de241dba86f ("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
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl