Re: Initplan placed at the righttree or the lefttree of joinnode - Mailing list pgsql-general

From Tom Lane
Subject Re: Initplan placed at the righttree or the lefttree of joinnode
Date
Msg-id 275742.1603376074@sss.pgh.pa.us
Whole thread Raw
In response to Initplan placed at the righttree or the lefttree of joinnode  ("Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>)
List pgsql-general
"Hou, Zhijie" <houzj.fnst@cn.fujitsu.com> writes:
> Can Initplan placed at the righttree or the lefttree of joinnode?

Initplans generally get attached to the topmost node of a given
(sub)query, cf create_plan().  You might be able to get what you want
by having an unflattenable subquery as one input of a join.  I do not
think you're going to get any exciting results that way though ...
as create_plan() notes, the exact spot where an initplan is attached
to the tree isn't terribly relevant.

            regards, tom lane



pgsql-general by date:

Previous
From: Sushant Pawar
Date:
Subject: Re: Hot backup in PostgreSQL
Next
From: Adam Brusselback
Date:
Subject: Re: Hot backup in PostgreSQL