Re: SKIP LOCKED DATA (work in progress) - Mailing list pgsql-hackers

From David Rowley
Subject Re: SKIP LOCKED DATA (work in progress)
Date
Msg-id CAApHDvo4D=RUYViqioTy0Q3H0c7X06ywjuykbt_3ij16RuHcoA@mail.gmail.com
Whole thread Raw
In response to Re: SKIP LOCKED DATA (work in progress)  (Thomas Munro <munro@ip9.org>)
List pgsql-hackers
On Sat, Jul 26, 2014 at 9:34 PM, Thomas Munro <munro@ip9.org> wrote:
I couldn't find an existing reasonable place to share a single wait
policy enumeration between parser/planner/executor and the heap access
module, and I get the feeling that it would be unacceptable to
introduce one.


I guess the way I justify it in my head is something like, "the 3 enums are for the same purpose, so having 3 exist all with different names is confusing and it makes the code harder to follow". So to fix that up I think, "oh we can just give them all the same name... But then, how can be we be sure each definition matches the other 2?" ... hmm, "just merge it into one and put it somewhere that can be accessed from everywhere."

Saying that I don't know what the project best practises are for locations for sharing such things, but if nothing exists then maybe this would be a good time to invent somewhere.

Maybe someone with more experience can chime in and give advice on this?

Regards

David Rowley

pgsql-hackers by date:

Previous
From: "MauMau"
Date:
Subject: Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations
Next
From: "MauMau"
Date:
Subject: Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations