Re: WITHIN GROUP patch

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: WITHIN GROUP patch
Дата
Msg-id CAFj8pRBbQTfRRAY8JAVjh=wGgjcnPJoNB58u3SKdpsSi=Z7_sA@mail.gmail.com
обсуждение исходный текст
Ответы Re: WITHIN GROUP patch  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Re: WITHIN GROUP patch  (Vik Fearing <vik.fearing@dalibo.com>)
Список pgsql-hackers



2013/10/9 Pavel Stehule <pavel.stehule@gmail.com>
Hello

I checked a conformance with ANSI SQL - and I didn't find any issue.

I found so following error message is not too friendly (mainly because this functionality will be new)

postgres=# select dense_rank(3,3,2) within group (order by num desc, odd) from test4;
ERROR:  Incorrect number of arguments for hypothetical set function
LINE 1: select dense_rank(3,3,2) within group (order by num desc, od...
               ^
postgres=# select dense_rank(3,3,2) within group (order by num desc) from test4;
ERROR:  Incorrect number of arguments for hypothetical set function
LINE 1: select dense_rank(3,3,2) within group (order by num desc) fr...
               ^
postgres=# select dense_rank(3,3) within group (order by num desc) from test4;
ERROR:  Incorrect number of arguments for hypothetical set function
LINE 1: select dense_rank(3,3) within group (order by num desc) from...
               ^
postgres=# select dense_rank(3,3) within group (order by num desc, num) from test4;
 dense_rank
------------
          3
(1 row)

Probably some hint should be there?

Regards

Pavel


2013/10/2 Vik Fearing <vik.fearing@dalibo.com>
On 09/30/2013 06:34 PM, Pavel Stehule wrote:
>
> I looked on this patch - it is one from long patches - so I propose to
> divide review to a few parts:
>
> a) a conformance with ANSI SQL
> b) check of new aggregates - semantic, implementation
> c) source code checking - usual patch review
>
> Now I would to work on @a

I had an unexpected emergency come up, sorry about that.  I plan on
doing B and C starting on Thursday (October 3).

I am grateful to have Pavel's help, this is a big patch.

--
Vik



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Any reasons to not move pgstattuple to core?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Auto-tuning work_mem and maintenance_work_mem