pgsql: pg_dump: Reorganize dumpBaseType()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_dump: Reorganize dumpBaseType()
Date: 2020-12-07 03:38:04
Message-ID: E1km7Lg-0004BX-KY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_dump: Reorganize dumpBaseType()

Along the same lines as ed2c7f65b and daa9fe8a5, reduce code duplication
by having just one copy of the parts of the query that are the same
across all server versions; and make the conditionals control the
smallest possible amount of code. This is in preparation for adding
another dumpable field to pg_type.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/04732962462ba99cf8f8bcf6ac83932867cc96a8

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 110 ++++++++++++++++------------------------------
1 file changed, 39 insertions(+), 71 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2020-12-07 13:03:35 pgsql: Fix more race conditions in the newly-added pg_rewind test.
Previous Message Michael Paquier 2020-12-07 00:33:26 pgsql: Fix fd leak in pg_verifybackup