Re: psql inability to select a socket - Mailing list pgsql-hackers

From alex avriette
Subject Re: psql inability to select a socket
Date
Msg-id 9B59D704-83E4-11D7-A4F1-003065BDE8A6@posixnap.net
Whole thread Raw
In response to Re: psql inability to select a socket  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
List pgsql-hackers
> AFAIK there's a special case for "hostnames" with slashes; those get
> interpreted as a path to a local socket.  Try setting PGHOST to
> /var/www/tmp before you start psql, for instance.

Ah! Jeroen this is wonderful. Thank you.

stink# setenv PGHOST /var/www/tmp
stink# /var/postgresql/bin/psql -U snort snort
Welcome to psql 7.3.2, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms       \h for help with SQL commands       \? for help on internal slash
commands      \g or terminate with semicolon to execute query       \q to quit
 

snort=>

My mistake, I didn't RT the FM:
       --host hostname              Specifies the host name of the machine on which the              postmaster is
running.If host begins with a slash,              it  is  used  as  the directory for the Unix-domain
socket.

Would it be overly verbose to mention the various PGHOST, PGDATA, 
PGUSER, etc variables in the output of
`psql --help`?

Alex



pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: tsearch upgrade documentation needed
Next
From: Tom Lane
Date:
Subject: Re: SET CONSTRAINTS not schema-aware