Re: psql question - Mailing list pgsql-general

From Command Prompt, Inc.
Subject Re: psql question
Date
Msg-id Pine.LNX.4.30.0111041042070.19169-100000@commandprompt.com
Whole thread Raw
In response to psql question  (Jefim Matskin <mjefim@sphera.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: elwood@agouros.de (Konstantinos Agouros)
Date:
Subject: One more question about intervals
Next
From: "Command Prompt, Inc."
Date:
Subject: Re: One more question about intervals