pg_dump: Reorganize dumpBaseType()

Enterprise / PostgreSQL - Tom Lane [] - 7 December 2020 03:37 UTC

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.

0473296246 pg_dump: Reorganize dumpBaseType()
src/bin/pg_dump/pg_dump.c | 110 ++++++++++++++++------------------------------
1 file changed, 39 insertions(+), 71 deletions(-)


  • Share