Re: [BUGS] BUG #14890: Error grouping by same column twice using FDW

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #14890: Error grouping by same column twice using FDW
Дата
Msg-id 10660.1510093781@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [BUGS] BUG #14890: Error grouping by same column twice using FDW  (Jeevan Chalke <jeevan.chalke@enterprisedb.com>)
Список pgsql-bugs
sean.johnston@edgeintelligence.com writes:
> select col1, col1 from loop_tbl group by 1, 2;
> psql:t.sql:7: ERROR:  targetlist item has multiple sortgroupref labels

This is the fault of commit 7012b132d ("Push down aggregates to remote
servers"), which imagined that postgres_fdw can use
apply_pathtarget_labeling_to_tlist() for situations well beyond that
function's limited abilities.  I kinda suspect that foreign_grouping_ok()
has got more bugs than this with complicated sortgroupref situations, too;
its willingness to scribble on the sortgrouprefs doesn't look like a great
idea to me.
        regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there