pg_dump: Add table qualifications to some tags
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 25 Feb 2016 23:56:37 +0000 (18:56 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 6 Apr 2016 16:13:11 +0000 (12:13 -0400)
commit3b3fcc4eeaeecff315420833975e7c87d760bfe1
treeec3bd8bbd6f67047061dce4a50f47733c66afe1c
parentde94e2af184e25576b13cbda8cf825118835d1cd
pg_dump: Add table qualifications to some tags

Some object types have names that are only unique for one table.  But
for those we generally didn't put the table name into the dump TOC tag.
So it was impossible to identify these objects if the same name was used
for multiple tables.  This affects policies, column defaults,
constraints, triggers, and rules.

Fix by adding the table name to the TOC tag, so that it now reads
"$schema $table $object".

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
src/bin/pg_dump/pg_dump.c