Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused
От
Andrew Gierth
Тема
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused
Дата
Msg-id
87efdynxay.fsf@news-spur.riddles.org.uk
Ответ на
Список
Дерево обсуждения
Avoid extra Sort nodes between WindowAggs when sorting can be reused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Masahiko Sawada <sawada.mshk@gmail.com>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Masahiko Sawada <sawada.mshk@gmail.com>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Masahiko Sawada <sawada.mshk@gmail.com>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused Daniel Gustafsson <daniel@yesql.se>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Avoid extra Sort nodes between WindowAggs when sorting can be reused Tom Lane <tgl@sss.pgh.pa.us>
>>>>> "Tom" == Tom Lane writes: Tom> * I'm almost thinking that changing to list_union is a bad idea, A fair point. Though it looks like list_union is used in only about 3 distinct places, and two of those are list_union(NIL, blah) to simply remove dups from a single list. The third place is the cartesian-product expansion of grouping sets, which uses list_union_int to remove duplicates - changing the order there will give slightly user-surprising but not actually incorrect results. Presumably list_concat_unique should be considered to guarantee that it preserves the relative order of the two lists and of the non-duplicate items in the second list? -- Andrew (irc:RhodiumToad)
В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Tom Lane
Дата: