Re: drop tablespace failed when location contains .. on win32
От
Andrew Dunstan
Тема
Re: drop tablespace failed when location contains .. on win32
Дата
Msg-id
9d81c415-d15e-743e-1394-b28bdcdd27ae@dunslane.net
Ответ на
drop tablespace failed when location contains .. on win32 (wangsh.fnst@fujitsu.com)
Список
Дерево обсуждения
drop tablespace failed when location contains .. on win32 "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
Re: drop tablespace failed when location contains .. on win32 Andrew Dunstan <andrew@dunslane.net>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
RE: drop tablespace failed when location contains .. on win32 "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
Re: drop tablespace failed when location contains .. on win32 Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: drop tablespace failed when location contains .. on win32 Andrew Dunstan <andrew@dunslane.net>
RE: drop tablespace failed when location contains .. on win32 "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
Re: drop tablespace failed when location contains .. on win32 Kyotaro Horiguchi <horikyota.ntt@gmail.com>
RE: drop tablespace failed when location contains .. on win32 "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
Re: drop tablespace failed when location contains .. on win32 Tom Lane <tgl@sss.pgh.pa.us>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
Re: drop tablespace failed when location contains .. on win32 Julien Rouhaud <rjuju123@gmail.com>
RE: drop tablespace failed when location contains .. on win32 "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
RE: drop tablespace failed when location contains .. on win32 "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
Re: drop tablespace failed when location contains .. on win32 Tom Lane <tgl@sss.pgh.pa.us>
Re: drop tablespace failed when location contains .. on win32 Andrew Dunstan <andrew@dunslane.net>
Re: drop tablespace failed when location contains .. on win32 Tom Lane <tgl@sss.pgh.pa.us>
Re: drop tablespace failed when location contains .. on win32 Michael Paquier <michael@paquier.xyz>
Re: drop tablespace failed when location contains .. on win32 Tom Lane <tgl@sss.pgh.pa.us>
On 9/8/21 6:16 AM, wangsh.fnst@fujitsu.com wrote: > Hi, > > I find a problem related to tablespace on win32(server2019). > >> postgres=# create tablespace tbs location 'C:\Users\postgres\postgres_install\aa\..\aa'; >> CREATE TABLESPACE >> postgres=# create table tbl(col int) tablespace tbs; >> ERROR: could not stat directory "pg_tblspc/16384/PG_15_202109061/12754": Invalid argument >> postgres=# drop tablespace tbs; >> WARNING: could not open directory "pg_tblspc/16384/PG_15_202109061": No such file or directory >> ERROR: could not stat file "pg_tblspc/16384": Invalid argument > I find that canonicalize_path() only remove the trailing '..', in this case, '..' is not removed , and > pgsymlink succeed. That seems like a bug. It's not very canonical :-) cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
В списке pgsql-hackers по дате отправления
От: James Coleman
Дата: