setting statement_timeout on live postmaster

Lists: pgsql-admin
From: Warren Little <wlittle(at)securitylending(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: setting statement_timeout on live postmaster
Date: 2004-01-17 00:57:24
Message-ID: 1074301044.5871.32.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Is there anyway to modify the statement_timeout value set
in postgresql.conf we creating a connection?
I would like to have the value set to something like 60 seconds on a
regular basis but my vacuumdb statements run longer and timeout without
completing the vacuum

--
Warren Little
Senior Vice President
Secondary Marketing
Security Lending Wholesale, LC
www.securitylending.com
Tel: 866-369-7763
Fax: 866-849-8082


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Warren Little <wlittle(at)securitylending(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: setting statement_timeout on live postmaster
Date: 2004-01-25 02:49:16
Message-ID: 200401250249.i0P2nGv23653@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Warren Little wrote:
> Is there anyway to modify the statement_timeout value set
> in postgresql.conf we creating a connection?
> I would like to have the value set to something like 60 seconds on a
> regular basis but my vacuumdb statements run longer and timeout without
> completing the vacuum

Sure, use SET statement_timeout = 60000 in your session before the vacuum.

--
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