Re: pg_tablespace_location() failure with allow_in_place_tablespaces
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-17T06:55:30Z
Lists: pgsql-hackers
On Thu, Mar 17, 2022 at 7:18 PM Michael Paquier <michael@paquier.xyz> wrote: > On Thu, Mar 17, 2022 at 04:34:30PM +1300, Thomas Munro wrote: > > I think what Horiguchi-san was pointing out above is that you need to > > enable the GUC *and* say LOCATION '', which the new paragraph doesn't > > capture. What do you think about this: > > > > A path relative to the data directory is returned for in-place > > tablespaces (see <xref ...>). > > An issue I have with this wording is that we give nowhere in the docs > an explanation of about the term "in-place tablespace", even if it can > be guessed from the name of the GUC. Maybe we don't need this paragraph at all. Who is it aimed at? > Another idea would be something like that: > "A relative path to the data directory is returned for tablespaces > created with an empty location string specified in the CREATE > TABLESPACE query when allow_in_place_tablespaces is enabled (see link > blah)." > > But perhaps that's just me being overly pedantic :p I don't really want to spill details of this developer-only stuff onto more manual sections... It's not really helping users if we confuse them with irrelevant details of a feature they shouldn't be using, is it? And the existing treatment "Returns the file system path that this tablespace is located in" is not invalidated by this special case, so maybe we shouldn't mention it?
Commits
-
Remove unnecessary Windows-specific basebackup code.
- 202b56ba91cb 15.0 landed
- 5344723755bd 16.0 landed
-
Fix get_dirent_type() for Windows junction points.
- fee0165fc1cf 14.5 landed
- 6d306ab73168 15.0 landed
- 9d3444dcce4d 16.0 landed
-
doc: Remove mention to in-place tablespaces for pg_tablespace_location()
- 7a7cd84893e0 15.0 landed
-
Fix pg_tablespace_location() with in-place tablespaces
- f6f0db4d6240 15.0 landed
-
Fix pg_basebackup with in-place tablespaces.
- c6f2f01611d4 15.0 landed