Re: [HACKERS] Declarative partitioning vs. sql_inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Declarative partitioning vs. sql_inheritance
Дата
Msg-id 11996.1482512358@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Declarative partitioning vs. sql_inheritance  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Declarative partitioning vs. sql_inheritance  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Great, committed.  I realize just now that I forgot to credit anyone
> as a reviewer, but hopefully nobody's going to mind that too much
> considering this is a purely mechanical patch I wrote in 20 minutes.

Do you have any particular objection to taking the next step of removing
enum InhOption in favor of making inhOpt a bool?  It seems to me that
stuff like

-       bool        recurse = interpretInhOption(rv->inhOpt);
+       bool        recurse = (rv->inhOpt == INH_YES);

just begs the question of why it's not simply
       bool        recurse = rv->inh;

Certainly a reader who did not know the history would be confused at
the useless-looking complexity.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Anastasia Lubennikova
Дата:
Сообщение: Re: [HACKERS] Vacuum: allow usage of more than 1GB of work mem
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Declarative partitioning vs. sql_inheritance