postgresql/src/bin/pg_upgrade
Tom Lane 2d34ad8430 Add a --socketdir option to pg_upgrade.
This allows control of the directory in which the postmaster sockets
are created for the temporary postmasters started by pg_upgrade.
The default location remains the current working directory, which is
typically fine, but if it is deeply nested then its pathname might
be too long to be a socket name.

In passing, clean up some messiness in pg_upgrade's option handling,
particularly the confusing and undocumented way that configuration-only
datadirs were handled.  And fix check_required_directory's substantially
under-baked cleanup of directory pathnames.

Daniel Gustafsson, reviewed by Hironobu Suzuki, some code cleanup by me

Discussion: https://postgr.es/m/E72DD5C3-2268-48A5-A907-ED4B34BEC223@yesql.se
2018-12-01 15:45:11 -05:00
..
po Translation updates 2018-05-21 12:29:52 -04:00
.gitignore Ignore file generated during pg_upgrade testing 2018-04-30 12:39:29 -04:00
check.c Fix ac218aa4f6 to work on versions before 9.5. 2018-11-26 23:26:05 -08:00
controldata.c pg_upgrade: issue helpful error message for use on standbys 2018-08-17 10:25:48 -04:00
dump.c Ensure that all temp files made during pg_upgrade are non-world-readable. 2018-02-05 10:58:27 -05:00
exec.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
file.c Fix inadequate autoconfiscation of copyfile() usage. 2018-11-07 16:41:42 -05:00
function.c pg_upgrade: report database names with missing extension libs 2018-07-28 12:33:54 -04:00
IMPLEMENTATION Fix wording in pg_upgrade docs 2017-05-05 12:42:21 +02:00
info.c Fix pg_upgrade for oid removal. 2018-11-26 14:37:08 -08:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
nls.mk Translation updates 2018-05-21 12:29:52 -04:00
option.c Add a --socketdir option to pg_upgrade. 2018-12-01 15:45:11 -05:00
parallel.c pg_upgrade: prevent check on live cluster from generating error 2018-01-08 22:43:51 -05:00
pg_upgrade.c Fix pg_upgrade for oid removal. 2018-11-26 14:37:08 -08:00
pg_upgrade.h Add a --socketdir option to pg_upgrade. 2018-12-01 15:45:11 -05:00
relfilenode.c pg_upgrade: Allow use of file cloning 2018-11-07 18:35:20 +01:00
server.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
tablespace.c Fix misc typos, mostly in comments. 2018-07-18 16:17:32 +03:00
test.sh Use installcheck-parallel in pg_upgrade's testsuite. 2018-11-07 09:22:48 -08:00
TESTING Fix bit-rot in pg_upgrade's test.sh, and improve documentation. 2017-06-08 13:48:39 -04:00
util.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
version.c Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h. 2018-04-08 13:59:52 -04:00