Re: [PATCH] ruleutils: Fix subqueries with shadowed aliases

2019-06-12 Thread Tom Lane
=?iso-8859-1?Q?Philip_Dub=E9?= writes: > Discovered while looking into issue here: > https://github.com/citusdata/citus/pull/2733 > For completeness I'll quote the example code to demonstrate the issue: > ... > Where the 2nd join_alias should be renamed to join_alias_1 Good catch! The proposed

[PATCH] ruleutils: Fix subqueries with shadowed aliases

2019-06-03 Thread Philip Dubé
Discovered while looking into issue here: https://github.com/citusdata/citus/pull/2733 For completeness I'll quote the example code to demonstrate the issue: postgres=# create table events_table (id integer primary key, user_id integer); CREATE TABLE postgres=# create table users_table_ref (id