Re: Support custom socket directory in pg_upgrade
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Daniel Gustafsson <daniel@yesql.se>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-11-23T14:45:07Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add a --socketdir option to pg_upgrade.
- 2d34ad843031 12.0 landed
Alvaro Herrera <alvherre@2ndquadrant.com> writes: > On 12/11/2018 20:00, Tom Lane wrote: >>> Also, even if we had an arguably-better idea, I suspect that there would >>> always be cases where it didn't work. > Surely they can just set TMPDIR if /tmp is not writable? If TMPDIR is > set and not writable, bark at the user for it. (1) There was nothing about TMPDIR in Peter's proposal, nor would an implementation based on mkdtemp(3) automatically do that for us. (2) If you accept the proposition that we must provide a user knob of some sort, why shouldn't it be a command line switch rather than an environment variable? The former are much easier to document and to discover. regards, tom lane