Re: psql connection timeout - Mailing list pgsql-general

From Bruce Momjian
Subject Re: psql connection timeout
Date
Msg-id 200412041535.iB4FZSo06303@candle.pha.pa.us
Whole thread Raw
In response to Re: psql connection timeout  (John DeSoi <desoi@pgedit.com>)
List pgsql-general
John DeSoi wrote:
> Hi Michael,
>
> On Dec 2, 2004, at 11:53 PM, Michael Fuhr wrote:
>
> > Try setting the PGCONNECT_TIMEOUT environment variable:
> >
> > env PGCONNECT_TIMEOUT=5 psql -h bogushost
> >
>
>
> This works great -- thanks very much.
>
> I did not see this anywhere in the documentation. Did I miss it or is
> the source code the only reference point?

I see it mentioned in the libpq section of the manual.  Those variables
actually affect all applications that use libpq, including psql.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Phil Endecott
Date:
Subject: Temporary tables and disk activity
Next
From: "Marc G. Fournier"
Date:
Subject: Re: 3rd RFD: comp.databases.postgresql (was: