From: | "Rod Taylor" <rbt(at)barchord(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Hackers List" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: UserLock oddity with Limit |
Date: | 2001-05-08 15:55:44 |
Message-ID: | 00d201c0d7d7$57beb3b0$2205010a@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
As a general rule I don't. But I'm having a hard time trying to find
out if there is a lock on a given item without attempting to lock it.
Seems to work that way with all locks but most delay until it can
obtain it. Userlocks don't wait.
--
Rod Taylor
BarChord Entertainment Inc.
----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rod Taylor" <rbt(at)barchord(dot)com>
Cc: "Hackers List" <pgsql-hackers(at)postgresql(dot)org>
Sent: Tuesday, May 08, 2001 11:35 AM
Subject: Re: [HACKERS] UserLock oddity with Limit
> "Rod Taylor" <rbt(at)barchord(dot)com> writes:
> > Fiddling with userlock stuff for the purposes of setting up an
action
> > queue. Having the lock in the where clause causes the lock code
to
> > actually lock 2 rows, not just the one that is being returned.
>
> A WHERE clause should *never* contain function calls with side
effects.
> I do not regard this behavior as a bug. Put the function call in
the
> SELECT's output list if you want to know exactly which rows it is
> evaluated at.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-05-08 16:07:27 | Re: Paths for C functions (was Re: Re: backend dies on 7.1.1 loading large datamodel.) |
Previous Message | Tom Lane | 2001-05-08 15:35:41 | Re: UserLock oddity with Limit |