Search Postgresql Archives

Re: issue with reading hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 22, 2024 at 2:54 PM Atul Kumar <akumar14871@xxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux