I have an instance of postgres sql 7.1.2 running with unix socket located in other directory than default (-k option of the postmaster). How can I tell the psql utility to connect to that socket? Jefim
On Sun, 4 Nov 2001, Jefim Matskin wrote: >I have an instance of postgres sql 7.1.2 running with unix socket located in >other directory than default (-k option of the postmaster). >How can I tell the psql utility to connect to that socket? Use the -h flag. When prefixed with a slash, it refers to a local directory for the socket, rather than a host. E.g.: [root@dev lxp]# psql -h /tmp template1 Welcome to psql, the PostgreSQL interactive terminal. [...] Regards, Jw. -- jlx@commandprompt.com by way of pgsql-general@commandprompt.com
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера