Re: Initplan placed at the righttree or the lefttree of joinnode

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Initplan placed at the righttree or the lefttree of joinnode
Date: 2020-10-22 14:14:34
Message-ID: 275742.1603376074@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adam Brusselback 2020-10-22 15:13:39 Re: Hot backup in PostgreSQL
Previous Message Sushant Pawar 2020-10-22 13:02:14 Re: Hot backup in PostgreSQL