Collect attribute data on extension owned tables being dumped
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 4 Sep 2020 17:53:09 +0000 (13:53 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 4 Sep 2020 17:54:54 +0000 (13:54 -0400)
commit3eb3d3e7822d5eecfcaba871a90263c6025c5216
tree62373dd8d12681a490df5f39a53bfdc266f2cbf6
parent3b5af0e95ad5a3d9b478826336a11ad1d201c378
Collect attribute data on extension owned tables being dumped

If this data is not collected, pg_dump segfaults if asked for column
inserts.

Fix by Fabrízio de Royes Mello

Backpatch to release 12 where the bug was introduced.
src/bin/pg_dump/pg_dump.c
src/test/modules/test_pg_dump/t/001_base.pl
src/test/modules/test_pg_dump/test_pg_dump--1.0.sql