Re: BUG #18971: Server passes an invalid (indirect) path in PGDATA to the external program

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitry Kovalenko <d.kovalenko@postgrespro.ru>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2025-06-28T20:19:13Z
Lists: pgsql-bugs
Dmitry Kovalenko <d.kovalenko@postgrespro.ru> writes:
> For my point of view, if you can't provider a valid path in PGDATA, do 
> not do it at all.

I'm not sure which part of "don't rely on PGDATA" you didn't get.
Under normal circumstances, Postgres itself doesn't set that at all.

If you want to establish a site convention that PGDATA is valid,
fine, but then it's on you to set it correctly.

			regards, tom lane