Re: Example query causing param_info to be set in plain rel path - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Example query causing param_info to be set in plain rel path
Date
Msg-id 1519.1382708503@sss.pgh.pa.us
Whole thread Raw
In response to Example query causing param_info to be set in plain rel path  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Responses Re: Example query causing param_info to be set in plain rel path  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
List pgsql-hackers
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> writes:
> In order to test various cases of LATERAL join in Postgres-XC, I am trying
> to find a query where RelOptInof->lateral_relids would get set for plain
> base relations.

I think you need a lateral reference in a function or VALUES FROM-item.
As you say, plain sub-selects are likely to get flattened.  (Possibly
if you stuck in a flattening fence such as OFFSET 0, you could get the
case to happen with a sub-select FROM item, but I'm too lazy to check.)
        regards, tom lane



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: lob conversion functionality
Next
From: Alvaro Herrera
Date:
Subject: Re: RULE regression test fragility?