Re: NULL-handling in aggregate(DISTINCT ...)
От
Tom Lane
Тема
Re: NULL-handling in aggregate(DISTINCT ...)
Дата
Msg-id
12111.1257990014@sss.pgh.pa.us
Ответ на
NULL-handling in aggregate(DISTINCT ...) (Andrew Gierth)
Список
Дерево обсуждения
NULL-handling in aggregate(DISTINCT ...) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: NULL-handling in aggregate(DISTINCT ...) Tom Lane <tgl@sss.pgh.pa.us>
Re: NULL-handling in aggregate(DISTINCT ...) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: NULL-handling in aggregate(DISTINCT ...) Tom Lane <tgl@sss.pgh.pa.us>
Re: NULL-handling in aggregate(DISTINCT ...) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: NULL-handling in aggregate(DISTINCT ...) Tom Lane <tgl@sss.pgh.pa.us>
Andrew Gierth writes: > Now the question: If the limit of one argument for DISTINCT aggs were > removed (which I'm considering doing as part of an update to the > aggregate ORDER BY patch I posted a while back), what should be the > behaviour of agg(distinct x,y) where one or both of x or y is null? > And should it depend on the strictness of the transition function? I think you could probably just change it: make DISTINCT work as per regular DISTINCT (treat null like a value, keep one copy). All the spec-conforming aggregates are strict and would ignore the null in the next step anyway. regards, tom lane
В списке pgsql-hackers по дате отправления