Re: extra columns in intermediate nodes not being removed by top level of executor
От | Michael Fuhr |
---|---|
Тема | Re: extra columns in intermediate nodes not being removed by top level of executor |
Дата | |
Msg-id | 20050903205712.GA2536@winnie.fuhr.org обсуждение исходный текст |
Ответ на | extra columns in intermediate nodes not being removed by top level of executor (Allan Wang <allanvv@gmail.com>) |
Ответы |
Re: extra columns in intermediate nodes not being removed by top level of executor
Re: extra columns in intermediate nodes not being removed by top level of executor |
Список | pgsql-bugs |
On Sat, Sep 03, 2005 at 04:29:25PM -0400, Allan Wang wrote: > I'm using 8.1 from CVS head of about two days ago. > > Extra columns seem to be on sum(plays.length), videos.path, videoid Here's a simplified, complete test case: CREATE TABLE foo ( x integer, y integer ); INSERT INTO foo (x, y) VALUES (1, 2); SELECT * FROM (SELECT sum(x), (SELECT y) AS yy FROM foo GROUP BY y) AS s LIMIT 1; sum | yy | -----+----+--- 1 | 2 | 2 (1 row) SELECT * FROM (SELECT sum(x), (SELECT y) AS yy FROM foo GROUP BY yy) AS s LIMIT 1; sum | yy -----+---- 1 | 2 (1 row) SELECT * FROM (SELECT sum(x), (SELECT y) AS yy FROM foo GROUP BY y) AS s; sum | yy -----+---- 1 | 2 (1 row) SELECT * FROM (SELECT sum(x), y AS yy FROM foo GROUP BY y) AS s LIMIT 1; sum | yy -----+---- 1 | 2 (1 row) SELECT * FROM (SELECT x, (SELECT y) AS yy FROM foo) AS s LIMIT 1; x | yy ---+---- 1 | 2 (1 row) -- Michael Fuhr
В списке pgsql-bugs по дате отправления: