Re: SKIP LOCKED DATA - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: SKIP LOCKED DATA
Date
Msg-id CA+U5nMJ0EzNaJB70t-wgyJmunXh4dY_GBHfRc8cg_Yg82TH34Q@mail.gmail.com
Whole thread Raw
In response to Re: SKIP LOCKED DATA  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Jan 16, 2012 at 5:33 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <munro@ip9.org> writes:
>> I am wondering out loud whether I am brave enough to try to propose
>> SKIP LOCKED DATA support and would be grateful for any feedback and/or
>> {en|dis}couragement.  I don't see it on the todo list, and didn't find
>> signs of others working on this (did I miss something?), but there are
>> examples of users asking for this feature (by various names) on the
>> mailing lists.  Has the idea already been rejected, is it
>> fundamentally infeasible for some glaring reason, or far too
>> complicated for new players?
>
> It sounds to me like "silently give the wrong answers".  Are you sure
> there are not better, more deterministic ways to solve your problem?

The name is misleading.

It means "open a cursor on a query, when you fetch if you see a locked
row return quickly from the fetch".

The idea is that if its locked it is still being written and therefore
not interesting (yet).

Sounds reasonable request.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: logging in high performance systems.
Next
From: Greg Smith
Date:
Subject: CommitFest 2012-01 kick-off