pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Rokohl <rokohl@raygina.de>
To: pgsql-odbc@postgresql.org
Subject: Re: lock - feedback
Date: Wed, 12 Oct 2005 14:51:15 +0000
Message-ID: <434D22E3.2000505@raygina.de> (raw)
In-Reply-To: <434D1676.3010509@archonet.com>
References: <434CEB1A.4050102@raygina.de>
	<434CF612.8010705@archonet.com>
	<434CFB5E.6000402@raygina.de>
	<434D0847.3080908@archonet.com>
	<434D0DF9.3010702@raygina.de>
	<434D1676.3010509@archonet.com>

Richard Huxton wrote:
> Yes, but network timeouts will be of the order of several minutes - 
> hours. You're not holding your locks for that long are you? Are you 
> really saying your SELECT FOR UPDATE queries can take more than a 
> couple of seconds to complete?
yes normally not, but it can happened. let something goes wrong, for
example the network is busy or the db server is busy or something like
that. if the number of request to a server is high enough it will be slow.
whatever it isn't a certain event for locks.

> All I'm saying is around "SELECT ... FOR UPDATE" you put two "SET 
> statement_timeout" to set a short timeout and then revert it.
yes it is clear what you mean but it can also make trouble and a
deadlock if the timeout is the short for the request.

>> and it seems as if this should be a problem with postgres :-(
>
> Perhaps - you can apply NOWAIT to "LOCK TABLE" and I think in 8.1 to 
> "SELECT FOR UPDATE" also. That's not much use if you're stuck with 8.0 
> for the moment though. It also doesn't actually change the logic of 
> the code above.
i had read it and i had trouble with the beta so i us the stable version.
but NOWAIT is a certain event for locks, the timeout isn't one.







view thread (14+ messages)  latest in thread

Message-ID: <434D22E3.2000505@raygina.de>
Permalink:  ../434D22E3.2000505@raygina.de/
Also on:    postgresql.org/message-id/434D22E3.2000505@raygina.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: rokohl@raygina.de
  Subject: Re: lock - feedback
  In-Reply-To: <434D22E3.2000505@raygina.de>
  References: <434CEB1A.4050102@raygina.de> <434CF612.8010705@archonet.com> <434CFB5E.6000402@raygina.de> <434D0847.3080908@archonet.com> <434D0DF9.3010702@raygina.de> <434D1676.3010509@archonet.com> <434D22E3.2000505@raygina.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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