pg_dump: Add table qualifications to some tags

Enterprise / PostgreSQL - Peter Eisentraut [gmx.net] - 6 April 2016 11:13 UTC

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".

3b3fcc4 pg_dump: Add table qualifications to some tags
src/bin/pg_dump/pg_dump.c | 42 ++++++++++++++++++++++++++++++++++--------
1 file changed, 34 insertions(+), 8 deletions(-)

Upstream: git.postgresql.org


  • Share