some more pg_dump refactoring
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-06-23T12:57:23Z
Lists: pgsql-hackers
Attachments
- 0001-pg_dump-Reorganize-dumpFunc-and-dumpAgg.patch (text/plain) patch 0001
Here is a patch to reorganize dumpFunc() and dumpAgg() in pg_dump, similar to daa9fe8a5264a3f192efa5ddee8fb011ad9da365. Instead of repeating the almost same large query in each version branch, use one query and add a few columns to the SELECT list depending on the version. This saves a lot of duplication. I have tested this with various old versions of PostgreSQL I had available, but a bit more random testing with old versions would be welcome. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
pg_dump: Reorganize dumpFunc() and dumpAgg()
- ed2c7f65bd9f 14.0 landed
-
pg_dump: Further reorganize getTableAttrs()
- 991c444e7ad3 14.0 landed
-
pg_dump: Reorganize getTableAttrs()
- daa9fe8a5264 12.0 cited