Re: [GENERAL] Statement timeout

2016-01-29 Thread Joshua D. Drake
On 01/29/2016 07:00 AM, Edson Richter wrote: I've set statement timeout in postgresql.conf to 300s. Now, I have a schema update procedure at application startup I would like to run without timeout, or with significant larger timeout (let's say, 1s). It is possible to change statement timeout

[GENERAL] Statement timeout

2016-01-29 Thread Edson Richter
I've set statement timeout in postgresql.conf to 300s. Now, I have a schema update procedure at application startup I would like to run without timeout, or with significant larger timeout (let's say, 1s). It is possible to change statement timeout at runtime before issuing the command (fo

Re: [GENERAL] statement timeout and pg_dump

2008-07-14 Thread Bruce Momjian
Scott Marlowe wrote: > On Mon, Jul 14, 2008 at 1:02 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > > "Scott Marlowe" <[EMAIL PROTECTED]> writes: > >> I just got hoisted by my own petard when a pg_dump failed due to > >> statement timeout and I didn't notice because I was running the dump > >> nohup and

Re: [GENERAL] statement timeout and pg_dump

2008-07-14 Thread Scott Marlowe
On Mon, Jul 14, 2008 at 1:02 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > "Scott Marlowe" <[EMAIL PROTECTED]> writes: >> I just got hoisted by my own petard when a pg_dump failed due to >> statement timeout and I didn't notice because I was running the dump >> nohup and didn't read the nohup.out file

Re: [GENERAL] statement timeout and pg_dump

2008-07-14 Thread Tom Lane
"Scott Marlowe" <[EMAIL PROTECTED]> writes: > I just got hoisted by my own petard when a pg_dump failed due to > statement timeout and I didn't notice because I was running the dump > nohup and didn't read the nohup.out file to see the errors. It wasn't > a big deal, the data wasn't critical opera

[GENERAL] statement timeout and pg_dump

2008-07-14 Thread Scott Marlowe
I just got hoisted by my own petard when a pg_dump failed due to statement timeout and I didn't notice because I was running the dump nohup and didn't read the nohup.out file to see the errors. It wasn't a big deal, the data wasn't critical operational data or anything. But it got me to thinking

Re: [GENERAL] Statement timeout not working on broken connections with active queries

2006-12-14 Thread Brendan O'Shea
Brian Wipf writes: On 12-Dec-06, at 4:30 PM, Tom Lane wrote: "Brendan O'Shea" <[EMAIL PROTECTED]> writes: We have discovered a situation where the statement_timeout is not = honored for broken connections. If a connection is in the process of = returning results to the client and the connect

Re: [GENERAL] Statement timeout not working on broken connections with active queries

2006-12-14 Thread Brendan O'Shea
"Tom Lane" <[EMAIL PROTECTED]> "Brendan O'Shea" <[EMAIL PROTECTED]> writes: We have discovered a situation where the statement_timeout is not = honored for broken connections. If a connection is in the process of = returning results to the client and the connection is severed (for = example, n

Re: [GENERAL] Statement timeout not working on broken connections with active queries

2006-12-13 Thread Martijn van Oosterhout
On Tue, Dec 12, 2006 at 10:41:19PM -0500, Tom Lane wrote: > "Brendan O'Shea" <[EMAIL PROTECTED]> writes: > > Is there no way to specify a timeout for the write() to the socket or some > > other way to abort? > > This is really a question to take up with your TCP stack implementors. > I think it i

Re: [GENERAL] Statement timeout not working on broken connections with active queries

2006-12-12 Thread Tom Lane
"Brendan O'Shea" <[EMAIL PROTECTED]> writes: > Is there no way to specify a timeout for the write() to the socket or some > other way to abort? This is really a question to take up with your TCP stack implementors. I think it is fundamentally wrong for Postgres to be second-guessing the network s

Re: [GENERAL] Statement timeout not working on broken connections with active queries

2006-12-12 Thread Brian Wipf
On 12-Dec-06, at 4:30 PM, Tom Lane wrote: "Brendan O'Shea" <[EMAIL PROTECTED]> writes: We have discovered a situation where the statement_timeout is not = honored for broken connections. If a connection is in the process of = returning results to the client and the connection is severed (for

Re: [GENERAL] Statement timeout not working on broken connections with active queries

2006-12-12 Thread Tom Lane
"Brendan O'Shea" <[EMAIL PROTECTED]> writes: > We have discovered a situation where the statement_timeout is not = > honored for broken connections. If a connection is in the process of = > returning results to the client and the connection is severed (for = > example, network cable on client is u

[GENERAL] Statement timeout not working on broken connections with active queries

2006-12-12 Thread Brendan O'Shea
We have discovered a situation where the statement_timeout is not honored for broken connections. If a connection is in the process of returning results to the client and the connection is severed (for example, network cable on client is unplugged) then the query continues to run on the server