pgsql: Refactor ChangeVarNodesExtended() using the custom callback

Поиск
Список
Период
Сортировка
Искать

pgsql: Refactor ChangeVarNodesExtended() using the custom callback

От:
Alexander Korotkov <akorotkov@postgresql.org>
Дата:
Refactor ChangeVarNodesExtended() using the custom callback

fc069a3a6319 implemented Self-Join Elimination (SJE) and put related logic
to ChangeVarNodes_walker().  This commit provides refactoring to remove the
SJE-related logic from ChangeVarNodes_walker() but adds a custom callback to
ChangeVarNodesExtended(), which has a chance to process a node before
ChangeVarNodes_walker().  Passing this callback to ChangeVarNodesExtended()
allows SJE-related node handling to be kept within the analyzejoins.c.

Reported-by: Richard Guo 
Discussion: https://postgr.es/m/CAMbWs49PE3CvnV8vrQ0Dr%3DHqgZZmX0tdNbzVNJxqc8yg-8kDQQ%40mail.gmail.com
Author: Andrei Lepikhov 
Author: Alexander Korotkov 

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/250a718aadad68793e82103282247556a46a3cfc

Modified Files
--------------
src/backend/optimizer/plan/analyzejoins.c | 160 +++++++++++++++++++++++++++---
src/backend/rewrite/rewriteManip.c        | 138 ++++++--------------------
src/include/rewrite/rewriteManip.h        |  17 +++-
src/tools/pgindent/typedefs.list          |   1 +
4 files changed, 192 insertions(+), 124 deletions(-)

Re: pgsql: Refactor ChangeVarNodesExtended() using the custom callback

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Alexander Korotkov  writes:
> Refactor ChangeVarNodesExtended() using the custom callback

You are aware that we are in release freeze, no?

			regards, tom lane


Re: pgsql: Refactor ChangeVarNodesExtended() using the custom callback

От:
Alexander Korotkov <aekorotkov@gmail.com>
Дата:
On Sat, May 3, 2025 at 10:34 PM Tom Lane  wrote:
>
> Alexander Korotkov  writes:
> > Refactor ChangeVarNodesExtended() using the custom callback
>
> You are aware that we are in release freeze, no?

I missed that.  Should I revert this commit now?

------
Regards,
Alexander Korotkov
Supabase


Re: pgsql: Refactor ChangeVarNodesExtended() using the custom callback

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Alexander Korotkov  writes:
> On Sat, May 3, 2025 at 10:34 PM Tom Lane  wrote:
>> You are aware that we are in release freeze, no?

> I missed that.  Should I revert this commit now?

Yes, I think so.  If you feel it's critical enough to go in on a
release weekend, you should ask pgsql-release@ for an exception.

			regards, tom lane


Re: pgsql: Refactor ChangeVarNodesExtended() using the custom callback

От:
Alexander Korotkov <aekorotkov@gmail.com>
Дата:
On Sat, May 3, 2025 at 11:06 PM Tom Lane  wrote:
>
> Alexander Korotkov  writes:
> > On Sat, May 3, 2025 at 10:34 PM Tom Lane  wrote:
> >> You are aware that we are in release freeze, no?
>
> > I missed that.  Should I revert this commit now?
>
> Yes, I think so.  If you feel it's critical enough to go in on a
> release weekend, you should ask pgsql-release@ for an exception.

I don't think it's critical enough.  Reverted.
My apologies for breaking the rules.

------
Regards,
Alexander Korotkov
Supabase


FAQ