Re: [BUGS] Table alias fun == incorrectly adding tables to join...

2003-09-22 Thread Stephan Szabo
On Mon, 22 Sep 2003, Sean Chittenden wrote: > > > Here's a fun one. > > > > > > test=# CREATE TABLE table_s1 (i int); > > > test=# CREATE TABLE table_s2 (j int); > > > test=# EXPLAIN ANALYZE SELECT table_s1.i, table_s2.j FROM table_s1 AS s1, > > > table_s2 AS s2 WHERE s1.i = s2.j; > > > NOTICE:

Re: [BUGS] Table alias fun == incorrectly adding tables to join...

2003-09-22 Thread Sean Chittenden
> > Here's a fun one. > > > > test=# CREATE TABLE table_s1 (i int); > > test=# CREATE TABLE table_s2 (j int); > > test=# EXPLAIN ANALYZE SELECT table_s1.i, table_s2.j FROM table_s1 AS s1, table_s2 > > AS s2 WHERE s1.i = s2.j; > > NOTICE: adding missing FROM-clause entry for table "table_s1" > > N

Re: [BUGS] Table alias fun == incorrectly adding tables to join...

2003-09-22 Thread Rod Taylor
> NOTICE: adding missing FROM-clause entry for table "table_s1" > NOTICE: adding missing FROM-clause entry for table "table_s2" > and execution times explode, naturally. I don't know if the spec says > this is the correct behavior or not, but I have a feeling its not and > this is a bug. This

Re: [BUGS] Table alias fun == incorrectly adding tables to join...

2003-09-22 Thread Stephan Szabo
On Mon, 22 Sep 2003, Sean Chittenden wrote: > Here's a fun one. > > test=# CREATE TABLE table_s1 (i int); > test=# CREATE TABLE table_s2 (j int); > test=# EXPLAIN ANALYZE SELECT table_s1.i, table_s2.j FROM table_s1 AS s1, table_s2 > AS s2 WHERE s1.i = s2.j; > NOTICE: adding missing FROM-clause e