Re: [BUGS] Status of issue 4593

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>, Lee McKeeman <lmckeeman(at)opushealthcare(dot)com>
Subject: Re: [BUGS] Status of issue 4593
Date: 2009-01-22 22:58:26
Message-ID: 200901222258.n0MMwQ628200@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Jeff Davis wrote:
> On Mon, 2009-01-12 at 13:35 -0500, Tom Lane wrote:
> > I think the behavior Lee is expecting is only implementable with a
> > full-table write lock, which is exactly what FOR UPDATE is designed
> > to avoid. There are certain properties you don't get with a partial
> > lock, and in the end I think we can't do much except document them.
> > We have LOCK TABLE for those who need the other behavior.
> >
>
> Lee said specifically that he's not using LIMIT, and there's already a
> pretty visible warning in the docs for using LIMIT with FOR UPDATE.
> Also, using LIMIT + FOR UPDATE has a dangerous-looking quality to it (at
> least to me) that would cause me to do a little more investigation
> before relying on its behavior.
>
> I'm not pushing for FOR UPDATE + ORDER BY to be blocked outright, but I
> think it's strange enough that it should be considered some kind of
> defect worse than the cases involving LIMIT that you mention.

I have added the attached documentation mention to CVS HEAD and 8.3.X.
If people want a TODO entry or to issue a WARNING message on use, please
let me know. This does seem similar to the FOR UPDATE / LIMIT issue so
I handled it similarly.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachment Content-Type Size
/rtmp/diff text/x-diff 2.4 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomislav Bodor 2009-01-23 00:56:12 BUG #4623: %s pattern broken in PGTYPEStimestamp_defmt_asc
Previous Message Peter Eisentraut 2009-01-22 21:58:49 Re: BUG #4622: xpath only work in utf-8 server encoding

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2009-01-22 22:58:53 Re: reducing statistics write overhead
Previous Message Josh Berkus 2009-01-22 22:38:49 Re: Pluggable Indexes (was Re: rmgr hooks (v2))