Re: SKIP LOCKED DATA (work in progress)

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: SKIP LOCKED DATA (work in progress)
Дата
Msg-id CAApHDvo4D=RUYViqioTy0Q3H0c7X06ywjuykbt_3ij16RuHcoA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SKIP LOCKED DATA (work in progress)  (Thomas Munro <munro@ip9.org>)
Список 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 по дате отправления:

Предыдущее
От: "MauMau"
Дата:
Сообщение: Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations
Следующее
От: "MauMau"
Дата:
Сообщение: Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations