Re: Example query causing param_info to be set in plain rel path
От | Ashutosh Bapat |
---|---|
Тема | Re: Example query causing param_info to be set in plain rel path |
Дата | |
Msg-id | CAFjFpRcUO1OM-VEj5Lc0kJ=-oC4SLpKFF8xpbWG00BJvEXS8Hw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Example query causing param_info to be set in plain rel path (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Example query causing param_info to be set in plain rel path
|
Список | pgsql-hackers |
No adding OFFSET there too didn't give the expected result. The lateral was handled in subquery and passed as param to the underlying table scan.
I am particularly interested in tables (unlike functions or subqueries) since, the table scans are shipped to the datanodes and I wanted to test the effect of lateral in such cases. OTH, functions involving access to the tables or subqueries are initiated on the coordinators, where lateral gets executed in the same way as PostgreSQL.On Fri, Oct 25, 2013 at 7:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> writes:I think you need a lateral reference in a function or VALUES FROM-item.
> 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.
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
--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company
В списке pgsql-hackers по дате отправления: