pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Luis P Caamano <lcaamano@mindspring.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can statement_timeout emulated NOWAIT?
Date: Tue, 16 Mar 2004 10:48:26 -0500
Message-ID: <25031.1079452106@sss.pgh.pa.us> (raw)
In-Reply-To: <DIEAJDKECNMGBBCLCGFFAEHPCGAA.lcaamano@mindspring.com>
References: <DIEAJDKECNMGBBCLCGFFAEHPCGAA.lcaamano@mindspring.com>

"Luis P Caamano" <lcaamano@mindspring.com> writes:
> I've researched the recent discussions about statement_timeout
> and NOWAIT and I'd like to confirm my understanding of the
> situation before acting on it.  Please let me know if the
> following statements are true:

> - LOCK TABLE ... NOWAIT has been checked in and will be available
>   in 7.5

Yes.

> - SELECT ... FOR UPDATE NOWAIT is in the TODO list (among other
>   NOWAIT commands) but it will also be available in 7.5

I haven't seen anyone working on that.

> - Using "SET LOCAL statement_timeout=xxx" can be used before
>   "SELECT ... FOR UPDATE" to emulate NOWAIT when the select
>   is simple and involves a relatively small number of rows.

Yes, if you are sure you know how long the select "ought" to take.

> - The error raised by statement_timeout and NOWAIT will be the
>   same.

Wouldn't expect so.  (Right now, I think statement_timeout reports
the same error code as query cancel, which is pretty bogus also.)

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <25031.1079452106@sss.pgh.pa.us>
Permalink:  ../25031.1079452106@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25031.1079452106@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lcaamano@mindspring.com
  Subject: Re: Can statement_timeout emulated NOWAIT?
  In-Reply-To: <25031.1079452106@sss.pgh.pa.us>

* 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