From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | John DeSoi <desoi(at)pgedit(dot)com> |
Cc: | Pgsql General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: psql connection timeout |
Date: | 2004-12-04 15:35:28 |
Message-ID: | 200412041535.iB4FZSo06303@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2004-12-04 15:36:51 | Re: 3rd RFD: comp.databases.postgresql |
Previous Message | Phil Endecott | 2004-12-04 15:33:46 | Temporary tables and disk activity |