Re: New Feature Request

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New Feature Request
Дата
Msg-id 20958.1590458538@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: New Feature Request  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Mon, May 25, 2020 at 09:21:26PM -0400, Bruce Momjian wrote:
>> I think your best bet is to try getting someone to write a hook
>> that will do the replacement so that you don't need to modify too much
>> of the Postgres core code.  You will need to have the hook updated for
>> new versions of Postgres, which adds to the complexity.

> Couldn't one just use the existing planner hook for that?

Yeah, probably.  One could also make a case for creating a similar
hook for the rewriter so that a new parsetree could be substituted
before the rewrite step ... but it's really not clear whether it's
better to try to match the parsetree before or after rewriting.
I'd be inclined to just make use of the existing hook until there's
a pretty solid argument why we need another one.

Note to OP: the lack of response to your previous post seems to me
to indicate that there's little enthusiasm for having such a feature
in core Postgres.  Thus, everybody is focusing on what sort of hooks
would be needed in-core to let an extension implement the feature.
Getting someone to write such an extension is left as an exercise
for the reader.

            regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Just for fun: Postgres 20?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: what can go in root.crt ?