pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgres timeout.
3+ messages / 2 participants
[nested] [flat]

* postgres timeout.
@ 2004-01-28 10:11 Stef <svb@ucs.co.za>
  2004-01-28 10:12 ` Re: postgres timeout. Stef <svb@ucs.co.za>
  2004-01-28 16:49 ` Re: [SQL] postgres timeout. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 3+ messages in thread

From: Stef @ 2004-01-28 10:11 UTC (permalink / raw)
  To: pgsql-performance@postgresql.org; +Cc: pgsql-sql

Hi all ,

I'm trying to find out if there is a specific setting 
to make transactions time out faster in a scenario
where there's an update on a table in a transaction 
block, and another update process tries to update
the same column.

It looks like the second process will wait until you
end the transaction block in the first transaction.

I've looked at the deadlock timeout parameter and
other parameters, but I don't think I found  what 
I'm looking for.

I basically need to be able to let the second process
exit with an error after waiting 5 - 10 seconds.

Please can someone help?

Kind Regards
Stefan

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgres timeout.
  2004-01-28 10:11 postgres timeout. Stef <svb@ucs.co.za>
@ 2004-01-28 10:12 ` Stef <svb@ucs.co.za>
  1 sibling, 0 replies; 3+ messages in thread

From: Stef @ 2004-01-28 10:12 UTC (permalink / raw)
  To: pg-perform <pgsql-performance@postgresql.org>; +Cc: pgsql-sql

Forgot to mention that I use postgres 7.3.4

Stef mentioned :
=> Hi all ,
=> 
=> I'm trying to find out if there is a specific setting 
=> to make transactions time out faster in a scenario
=> where there's an update on a table in a transaction 
=> block, and another update process tries to update
=> the same column.
=> 
=> It looks like the second process will wait until you
=> end the transaction block in the first transaction.
=> 
=> I've looked at the deadlock timeout parameter and
=> other parameters, but I don't think I found  what 
=> I'm looking for.
=> 
=> I basically need to be able to let the second process
=> exit with an error after waiting 5 - 10 seconds.
=> 
=> Please can someone help?
=> 
=> Kind Regards
=> Stefan
=> 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] postgres timeout.
  2004-01-28 10:11 postgres timeout. Stef <svb@ucs.co.za>
@ 2004-01-28 16:49 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2004-01-28 16:49 UTC (permalink / raw)
  To: Stef <svb@ucs.co.za>; +Cc: pgsql-sql

Stef <svb@ucs.co.za> writes:
> I'm trying to find out if there is a specific setting 
> to make transactions time out faster in a scenario
> where there's an update on a table in a transaction 
> block, and another update process tries to update
> the same column.

> It looks like the second process will wait until you
> end the transaction block in the first transaction.

You can use statement_timeout to limit the wait.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-01-28 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-01-28 10:11 postgres timeout. Stef <svb@ucs.co.za>
2004-01-28 10:12 ` Stef <svb@ucs.co.za>
2004-01-28 16:49 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox