From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Create src/fe_utils/, and move stuff into there from pg_dump's d
Date: Thu, 24 Mar 2016 19:56:13 +0000
Message-ID: <E1ajBMb-0003bO-VJ@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Create src/fe_utils/, and move stuff into there from pg_dump's dumputils.
Per discussion, we want to create a static library and put the stuff into
it that until now has been shared across src/bin/ directories by ad-hoc
methods like symlinking a source file. This commit creates the library and
populates it with a couple of files that contain the widely-useful portions
of pg_dump's dumputils.c file. dumputils.c survives, because it has some
stuff that didn't seem appropriate for fe_utils, but it's significantly
smaller and is no longer referenced from any other directory.
Follow-on patches will move more stuff into fe_utils.
The Mkvcbuild.pm hacking here is just a best guess; we'll see how the
buildfarm likes it.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/588d963b00e5e4385b6425418e3faa726f63f72e
Modified Files
--------------
src/Makefile | 1 +
src/Makefile.global.in | 7 +-
src/bin/pg_dump/Makefile | 7 +-
src/bin/pg_dump/common.c | 35 +-
src/bin/pg_dump/dumputils.c | 705 +----------------------------------
src/bin/pg_dump/dumputils.h | 63 +---
src/bin/pg_dump/parallel.c | 1 +
src/bin/pg_dump/pg_backup.h | 2 +-
src/bin/pg_dump/pg_backup_archiver.c | 2 +
src/bin/pg_dump/pg_backup_null.c | 1 +
src/bin/pg_dump/pg_backup_tar.c | 1 +
src/bin/pg_dump/pg_dump.c | 1 +
src/bin/pg_dump/pg_dump.h | 3 -
src/bin/pg_dump/pg_dumpall.c | 1 +
src/bin/psql/.gitignore | 1 -
src/bin/psql/Makefile | 12 +-
src/bin/psql/command.c | 2 +-
src/bin/psql/copy.c | 1 -
src/bin/psql/describe.c | 2 +-
src/bin/scripts/.gitignore | 1 -
src/bin/scripts/Makefile | 24 +-
src/bin/scripts/clusterdb.c | 2 +-
src/bin/scripts/createdb.c | 2 +-
src/bin/scripts/createuser.c | 3 +-
src/bin/scripts/dropdb.c | 2 +-
src/bin/scripts/dropuser.c | 2 +-
src/bin/scripts/reindexdb.c | 3 +-
src/bin/scripts/vacuumdb.c | 3 +-
src/fe_utils/Makefile | 39 ++
src/fe_utils/simple_list.c | 116 ++++++
src/fe_utils/string_utils.c | 674 +++++++++++++++++++++++++++++++++
src/include/Makefile | 5 +-
src/include/fe_utils/simple_list.h | 55 +++
src/include/fe_utils/string_utils.h | 51 +++
src/tools/msvc/Mkvcbuild.pm | 22 +-
35 files changed, 1004 insertions(+), 848 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Create src/fe_utils/, and move stuff into there from pg_dump's d
In-Reply-To: <E1ajBMb-0003bO-VJ@gemulon.postgresql.org>
References: <E1ajBMb-0003bO-VJ@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