Re: FILTER for aggregates [was Re: Department of Redundancy Department: makeNode(FuncCall) division]
От | Dean Rasheed |
---|---|
Тема | Re: FILTER for aggregates [was Re: Department of Redundancy Department: makeNode(FuncCall) division] |
Дата | |
Msg-id | CAEZATCVx27ZXqWe-xX_yTqKbvOQMQpftFMCJKdON3Qd2-1quhQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: FILTER for aggregates [was Re: Department of Redundancy Department: makeNode(FuncCall) division] (David Fetter <david@fetter.org>) |
Ответы |
Re: FILTER for aggregates [was Re: Department of Redundancy
Department: makeNode(FuncCall) division]
|
Список | pgsql-hackers |
On 21 June 2013 06:16, David Fetter <david@fetter.org> wrote: > On Fri, Jun 21, 2013 at 12:10:25AM -0400, Alvaro Herrera wrote: >> David Fetter escribió: >> > On Thu, Jun 20, 2013 at 08:59:27PM +0100, Dean Rasheed wrote: >> >> > > In my testing of sub-queries in the FILTER clause (an extension to the >> > > spec), I was able to produce the following error: >> > >> > Per the spec, >> > >> > B) A <filter clause> shall not contain a <query expression>, a <window function>, or an outer reference. >> >> If this is not allowed, I think there should be a clearer error message. >> What Dean showed is an internal (not user-facing) error message. > > Please find attached a patch which allows subqueries in the FILTER > clause and adds regression testing for same. > Nice! I should have pointed out that it was already working for some sub-queries, just not all. It's good to see that it was basically just a one-line fix, because I think it would have been a shame to not support sub-queries. I hope to take another look at it over the weekend. Regards, Dean
В списке pgsql-hackers по дате отправления: