public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: Atul Kumar <[email protected]>
Cc: Adrian Klaver <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: issue with reading hostname
Date: Mon, 22 Apr 2024 14:59:17 -0700
Message-ID: <CAKFQuwagbtfSjzeu6SgZX7AbsiisuUXhKKiQJ2aBRpaGMjAN0A@mail.gmail.com> (raw)
In-Reply-To: <CA+ONtZ4+a46c1CHs8=E0vo8xJRuzUi5Xnxbu-rL3KoRdkf1cig@mail.gmail.com>
References: <CA+ONtZ4a9mJhBX2p4Ug8NSR+tHHuVvi-Vrcm3QyGMjkwNsuRPw@mail.gmail.com>
<CANzqJaARXp8O6tzsB=uG8tt3pPub7aYhTA5VvZHNJAW7eeR3Og@mail.gmail.com>
<CA+ONtZ4HiO5FSZcpmaNzLU3brfu_iRhc0QSUQFR4uypXRrGM7Q@mail.gmail.com>
<[email protected]>
<CA+ONtZ4+a46c1CHs8=E0vo8xJRuzUi5Xnxbu-rL3KoRdkf1cig@mail.gmail.com>
On Mon, Apr 22, 2024 at 2:54 PM Atul Kumar <[email protected]> wrote:
> I mean, Once I change the hostname then how will the socket read the new
> hostname ? Does it require a postgres service restart ?
>
>>
>>
-h doesn't strictly mean hostname (the wording choice here does seem
problematic), rather it is simply a direct specification of how and
where the psql client looks for and connects to the server. When the
specification is a filename it is that file that is used and hostname and
any other networking-related stuff is immaterial. Though the server does
choose to borrow the port number 5432 from networking to construct the
unique name out of convenience.
David J.
view thread (4+ 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], [email protected]
Subject: Re: issue with reading hostname
In-Reply-To: <CAKFQuwagbtfSjzeu6SgZX7AbsiisuUXhKKiQJ2aBRpaGMjAN0A@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