[COMMITTERS] pgsql: Fix an oversight in checking whether a join with LATERAL refs is

2015-07-31 Thread Tom Lane
Fix an oversight in checking whether a join with LATERAL refs is legal. In many cases, we can implement a semijoin as a plain innerjoin by first passing the righthand-side relation through a unique-ification step. However, one of the cases where this does NOT work is where the RHS has a LATERAL re

[COMMITTERS] pgsql: Fix an oversight in checking whether a join with LATERAL refs is

2015-07-31 Thread Tom Lane
Fix an oversight in checking whether a join with LATERAL refs is legal. In many cases, we can implement a semijoin as a plain innerjoin by first passing the righthand-side relation through a unique-ification step. However, one of the cases where this does NOT work is where the RHS has a LATERAL re

[COMMITTERS] pgsql: Fix an oversight in checking whether a join with LATERAL refs is

2015-07-31 Thread Tom Lane
Fix an oversight in checking whether a join with LATERAL refs is legal. In many cases, we can implement a semijoin as a plain innerjoin by first passing the righthand-side relation through a unique-ification step. However, one of the cases where this does NOT work is where the RHS has a LATERAL re

[COMMITTERS] pgsql: Fix an oversight in checking whether a join with LATERAL refs is

2015-07-31 Thread Tom Lane
Fix an oversight in checking whether a join with LATERAL refs is legal. In many cases, we can implement a semijoin as a plain innerjoin by first passing the righthand-side relation through a unique-ification step. However, one of the cases where this does NOT work is where the RHS has a LATERAL re