public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jeff Davis <[email protected]>
To: Tom Lane <[email protected]>
Cc: Michael Paesold <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: [HACKERS] FOR SHARE vs FOR UPDATE locks
Date: Fri, 01 Dec 2006 10:43:01 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>

On Fri, 2006-12-01 at 02:46 -0500, Tom Lane wrote:
> Michael Paesold <[email protected]> writes:
> > Now seriously, isn't this a perfectly feasible scenario? E.g. the outer 
> > transaction acquires a shared lock because of foreign key constraints, and 
> > the sub transaction later wants to update that row?
> 
> Yeah, it's not implausible.  But the only way I can see to implement
> that is to upgrade the outer xact's shared lock to exclusive, and that
> doesn't seem real cool either.
> 

If it's a plausible enough sequence of events, is it worth adding a note
to the "migration" section of the release notes?

Regards,
	Jeff Davis




view thread (32+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: [HACKERS] FOR SHARE vs FOR UPDATE locks
  In-Reply-To: <[email protected]>

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

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