Re: New Feature Request - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: New Feature Request
Date
Msg-id 20200526013733.GC1573@paquier.xyz
Whole thread Raw
In response to Re: New Feature Request  (Bruce Momjian <bruce@momjian.us>)
Responses Re: New Feature Request
List pgsql-hackers
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?  The
post-parse analysis hook is run before a query rewrite, but the
planner hook could manipulate a rewrite before planning the query.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Default gucs for EXPLAIN
Next
From: Tomas Vondra
Date:
Subject: Re: New Feature Request