Re: New Feature Request

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Bert Scalzo <bertscalzo2(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: New Feature Request
Date: 2020-05-26 01:37:33
Message-ID: 20200526013733.GC1573@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2020-05-26 01:47:58 Re: New Feature Request
Previous Message Bruce Momjian 2020-05-26 01:36:50 Re: Default gucs for EXPLAIN