Re: "current directory" in a server error message

2023-03-16 Thread Kyotaro Horiguchi
At Thu, 16 Mar 2023 12:05:32 -0400, Tom Lane wrote in > Kyotaro Horiguchi writes: > > At Thu, 16 Mar 2023 09:32:05 +0530, Bharath Rupireddy > > wrote in > >> On Thu, Mar 16, 2023 at 7:47 AM Kyotaro Horiguchi > >> wrote: > >>> Thus I think that the message should read "path must be in or belo

Re: "current directory" in a server error message

2023-03-16 Thread Tom Lane
Kyotaro Horiguchi writes: > At Thu, 16 Mar 2023 09:32:05 +0530, Bharath Rupireddy > wrote in >> On Thu, Mar 16, 2023 at 7:47 AM Kyotaro Horiguchi >> wrote: >>> Thus I think that the message should read "path must be in or below >>> the data directory" instead. >> BTW, adminpack too has the sa

Re: "current directory" in a server error message

2023-03-16 Thread Kyotaro Horiguchi
At Thu, 16 Mar 2023 09:32:05 +0530, Bharath Rupireddy wrote in > On Thu, Mar 16, 2023 at 7:47 AM Kyotaro Horiguchi > wrote: > > Thus I think that the message should read "path must be in or below > > the data directory" instead. > > > > What do you think about making this change? > > Well yes.

Re: "current directory" in a server error message

2023-03-15 Thread Bharath Rupireddy
On Thu, Mar 16, 2023 at 7:47 AM Kyotaro Horiguchi wrote: > > Hello. > > When I ran pg_ls_dir('..'), the error message I received was somewhat > difficult to understand. > > postgres=> select * from pg_ls_dir('..'); > ERROR: path must be in or below the current directory > > As far as I know the c