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:55:11 +0000 (13:55 -0400)
commit72857482c135677703111855f33550c442108eaa
treee806dabb8b1bbb6189f30d5888e5d99a57cf505a
parent7574af1e1b94a4de7a6f63f3a7854a508ab7b0e0
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