"Garbuz, Yakov [ASM Research]" <Yakov.Garbuz@asmr.com> writes:
> SELECT version();
> "PostgreSQL 12.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5), 64-bit"
> SHOW config_file;
> "/var/lib/postgresql/data/postgresql.conf"
> cat: /var/lib/postgresql/data/postgresql.conf: No such file or directory
> There is no postgresql directory in /var/lib/
The best explanation I can see for that is that the server is on
some other machine than where you are running psql/cat.
I guess it's at least theoretically possible that the server was
originally started in /var/lib/postgresql/data and somebody moved
that directory since then.
In any case, none of this looks like a Postgres bug; it looks
like sloppy sysadmin work. You're going to have to puzzle out
what's been done in that installation by yourself, because the
rest of us don't have the facts available.
regards, tom lane