Re: pg_tablespace_location() failure with allow_in_place_tablespaces
От
Michael Paquier
Тема
Re: pg_tablespace_location() failure with allow_in_place_tablespaces
Дата
Msg-id
YiXuNLQ65pRaSgfN@paquier.xyz
Ответ на
pg_tablespace_location() failure with allow_in_place_tablespaces (Michael Paquier)
Список
Дерево обсуждения
pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Thomas Munro <thomas.munro@gmail.com>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
Re: pg_tablespace_location() failure with allow_in_place_tablespaces Michael Paquier <michael@paquier.xyz>
On Fri, Mar 04, 2022 at 03:44:22PM +0900, Michael Paquier wrote: > The use may be limited to any automated testing and > allow_in_place_tablespaces is a developer GUC, still it seems to me > that there is an argument to allow the case rather than tweak any > tests to hardcode a path with the tablespace OID. And any other code > paths are able to handle such tablespaces, be they in recovery or in > tablespace create/drop. > > A junction point is a directory on WIN32 as far as I recall, but > pgreadlink() is here to ensure that we get the correct path on > a source found as pgwin32_is_junction(), so we can rely on that. This > stuff has led me to the attached. Thomas, I'd rather fix this for the sake of the tests. One point is that the function returns a relative path for in-place tablespaces, but it would be easy enough to append a DataDir. What do you think? -- Michael
В списке pgsql-hackers по дате отправления
От: Ashutosh Bapat
Дата: