pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move common pg_dump code related to connections to a new file
Date: Fri, 04 Apr 2025 20:09:52 +0000
Message-ID: <E1u0nMO-002gkd-3C@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1u0nMO-002gkd-3C@gemulon.postgresql.org>
Permalink:  ../E1u0nMO-002gkd-3C@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1u0nMO-002gkd-3C@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move common pg_dump code related to connections to a new file
  In-Reply-To: <E1u0nMO-002gkd-3C@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox