public inbox for [email protected]
help / color / mirror / Atom feedFrom: Atul Kumar <[email protected]>
To: pgsql-general <[email protected]>
Subject: issue with reading hostname
Date: Tue, 23 Apr 2024 01:43:58 +0530
Message-ID: <CA+ONtZ4a9mJhBX2p4Ug8NSR+tHHuVvi-Vrcm3QyGMjkwNsuRPw@mail.gmail.com> (raw)
Hi,
I have postgresql version 15 running on centos7.
I have below query that reads hostname from /tmp directory:
psql postgres -A -t -p 5432 -h /tmp/ -c 'SELECT pg_is_in_recovery();'
so below are my questions:
1. Is the psql client reading the socket file that resides in the /tmp
directory to fetch the hostname ?
2. I saw the socket file in /tmp and it is empty. Then how is the psql
client still reading the socket file successfully for hostname ?
this is my socket looks ( the size is 0 as the file is empty):
srwxrwxrwx. 1 postgres postgres 0 Apr 22 12:47 .s.PGSQL.5432
Please help me clarify these doubts.
Regards.
view thread (6+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: issue with reading hostname
In-Reply-To: <CA+ONtZ4a9mJhBX2p4Ug8NSR+tHHuVvi-Vrcm3QyGMjkwNsuRPw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox