I have a large query in a PostgreSQL database. The Query is something like this:
SELECT * FROM table1, table2, ... WHERE table1.id = table2.id...
If only join columns are duplicated (i.e. have the same names), then you can get away with changing:
select * from a, b where a.id = b.id
to:
select * from a join b using (id)