pgsql: pg_dump: Reorganize getTableAttrs() - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: pg_dump: Reorganize getTableAttrs()
Date
Msg-id E1fvQ1v-0004Ui-P5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: pg_verify_checksums: rename -d to --verbose
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add semicolons to end of internally run queries