On 8/16/2014 9:01 AM, Nick Guenther wrote:
First thing to point out is that you need only one of -h and -p. They are redundant options, because you only connect to postgres either over TCP (-p) or with a unix domain socket (-h).
what??!? no, this is totally wrong.
psql -h myserver -p 5435
psql -h /path/to/socket -p 5433
those are both valid. if there is no hostname, OR the hostname starts
with /, then it uses a unix domain socket.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general