Keary Suska <hierophant(at)pcisys(dot)net> writes:
> The easiest way is to cat ~postgres/data/global/pg_pwd,
>>
>> No way.
> What does "no way" mean?
Means "it don't work if you're not on the database server machine,
nor if you're not logged in as the postgres user". A proper solution
is an SQL query that works across a remote database connection...
regards, tom lane