]> granicus.if.org Git - postgresql/commit
Create src/fe_utils/, and move stuff into there from pg_dump's dumputils.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 19:55:44 +0000 (15:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 19:55:57 +0000 (15:55 -0400)
commit588d963b00e5e4385b6425418e3faa726f63f72e
treeea104b491189a036fd36898359b960bb914f6a08
parenta596db332b8c7f593a82af86f69353ba08f6214c
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.
35 files changed:
src/Makefile
src/Makefile.global.in
src/bin/pg_dump/Makefile
src/bin/pg_dump/common.c
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/parallel.c
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_null.c
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/.gitignore
src/bin/psql/Makefile
src/bin/psql/command.c
src/bin/psql/copy.c
src/bin/psql/describe.c
src/bin/scripts/.gitignore
src/bin/scripts/Makefile
src/bin/scripts/clusterdb.c
src/bin/scripts/createdb.c
src/bin/scripts/createuser.c
src/bin/scripts/dropdb.c
src/bin/scripts/dropuser.c
src/bin/scripts/reindexdb.c
src/bin/scripts/vacuumdb.c
src/fe_utils/Makefile [new file with mode: 0644]
src/fe_utils/simple_list.c [new file with mode: 0644]
src/fe_utils/string_utils.c [new file with mode: 0644]
src/include/Makefile
src/include/fe_utils/simple_list.h [new file with mode: 0644]
src/include/fe_utils/string_utils.h [new file with mode: 0644]
src/tools/msvc/Mkvcbuild.pm