pgsql: pg_dump: Reorganize getTableAttrs()

Started by Peter Eisentrautalmost 8 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

pg_dump: Reorganize getTableAttrs()

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.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/daa9fe8a5264a3f192efa5ddee8fb011ad9da365

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 198 +++++++++++++++-------------------------------
1 file changed, 62 insertions(+), 136 deletions(-)