Authorizing select count()

Поиск
Список
Период
Сортировка
От Laetitia Avrot
Тема Authorizing select count()
Дата
Msg-id CAB_COdjwCJWP35B=z0M4fz=1vGUax1OZpMbpwuhw94gJZw7aDg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Authorizing select count()  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hello,

Vik Fearing pointed out the inconsistency in the SQL Standard that imposes using count(*) (with a star) but row)number() without it.

Vik's point of view is that we should be able to use row_number with a star, which is already implemented in Postgres.

My point of view is we could add support for count(). It does not remove the compliance with the SQL Standard, it just adds an extra feature.

You will find enclosed a patch proposal to allow count to be used without a star. I, on purpose, decided not to document this behavior, maybe that's wrong.

Have a great day,

Lætitia
Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Improving connection scalability (src/backend/storage/ipc/procarray.c)
Следующее
От: Matthias van de Meent
Дата:
Сообщение: Re: adding status for COPY progress report