pgsql: Move common pg_dump code related to connections to a new file - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Move common pg_dump code related to connections to a new file
Date
Msg-id E1u0nMO-002gkd-3C@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Move common pg_dump code related to connections to a new file

ConnectDatabase is used by pg_dumpall, pg_restore and pg_dump so move
common code to new file.

new file name: connectdb.c

Author:    Mahendra Singh Thalor <mahi6run@gmail.com>

Branch
------
master

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

Modified Files
--------------
src/bin/pg_dump/Makefile             |   5 +-
src/bin/pg_dump/connectdb.c          | 294 +++++++++++++++++++++++++++++++++++
src/bin/pg_dump/connectdb.h          |  26 ++++
src/bin/pg_dump/meson.build          |   1 +
src/bin/pg_dump/pg_backup.h          |   6 +-
src/bin/pg_dump/pg_backup_archiver.c |   6 +-
src/bin/pg_dump/pg_backup_db.c       |  79 ++--------
src/bin/pg_dump/pg_dump.c            |   2 +-
src/bin/pg_dump/pg_dumpall.c         | 278 ++-------------------------------
9 files changed, 352 insertions(+), 345 deletions(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: pgsql: pg_dump: Retrieve attribute statistics in batches.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Non text modes for pg_dumpall, correspondingly change pg_restore