pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Kiger <kris@musicrebellion.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: why can't select for update be used with join
Date: Wed, 05 Nov 2003 16:13:41 -0500
Message-ID: <11302.1068066821@sss.pgh.pa.us> (raw)
In-Reply-To: <3FA94CDC.1090309@musicrebellion.com>
References: <1067594647.22286.57.camel@franki-laptop.tpi.pl>
	<9643.1067610219@sss.pgh.pa.us>
	<1068039213.28814.116.camel@franki-laptop.tpi.pl>
	<3453.1068055189@sss.pgh.pa.us>
	<1068056378.28827.172.camel@franki-laptop.tpi.pl>
	<3767.1068057262@sss.pgh.pa.us>
	<1068057055.28827.180.camel@franki-laptop.tpi.pl>
	<3915.1068058334@sss.pgh.pa.us>
	<1068058550.28821.188.camel@franki-laptop.tpi.pl>
	<3FA94CDC.1090309@musicrebellion.com>

Kris Kiger <kris@musicrebellion.com> writes:
> I'm trying to do a query:  select ta.x from ta join tb using (y) where z 
> = 'somevalue' FOR UPDATE

> Why can't this be executed without error in 7.3.x?  It worked just fine 
> in 7.2.x.   Thanks for the input

Try saying "FOR UPDATE OF ta, tb".

I agree there's no real reason the system should be that pedantic,
however.  Will see about fixing this for 7.4.

			regards, tom lane



view thread (2+ messages)

Message-ID: <11302.1068066821@sss.pgh.pa.us>
Permalink:  ../11302.1068066821@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11302.1068066821@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 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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kris@musicrebellion.com
  Subject: Re: why can't select for update be used with join
  In-Reply-To: <11302.1068066821@sss.pgh.pa.us>
  References: <1067594647.22286.57.camel@franki-laptop.tpi.pl> <9643.1067610219@sss.pgh.pa.us> <1068039213.28814.116.camel@franki-laptop.tpi.pl> <3453.1068055189@sss.pgh.pa.us> <1068056378.28827.172.camel@franki-laptop.tpi.pl> <3767.1068057262@sss.pgh.pa.us> <1068057055.28827.180.camel@franki-laptop.tpi.pl> <3915.1068058334@sss.pgh.pa.us> <1068058550.28821.188.camel@franki-laptop.tpi.pl> <3FA94CDC.1090309@musicrebellion.com> <11302.1068066821@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