Re: issue with reading hostname

Поиск
Список
Период
Сортировка
От Atul Kumar
Тема Re: issue with reading hostname
Дата
Msg-id CA+ONtZ4HiO5FSZcpmaNzLU3brfu_iRhc0QSUQFR4uypXRrGM7Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: issue with reading hostname  (Ron Johnson <ronljohnsonjr@gmail.com>)
Ответы Re: issue with reading hostname  (Ron Johnson <ronljohnsonjr@gmail.com>)
Re: issue with reading hostname  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Can we edit the socket to change the hostname in it ?

Regards.

On Tue, Apr 23, 2024 at 2:41 AM Ron Johnson <ronljohnsonjr@gmail.com> wrote:
On Mon, Apr 22, 2024 at 4:14 PM Atul Kumar <akumar14871@gmail.com> wrote:
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();'


If you installed from the PGDG repository (possibly also the CENTOS repos, but I'm not sure), then the domain socket also lives in :
/var/run/postgresql

* I find that more expressive than /tmp.
* No need to specify the host when using sockets.
* Using a socket name makes parameterizing the hostname easier in scripts.


В списке pgsql-general по дате отправления:

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: CLUSTER vs. VACUUM FULL
Следующее
От: David Rowley
Дата:
Сообщение: Re: Performance degradation after upgrading from 9.5 to 14