ROW or RANGE not optional in range specification

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема ROW or RANGE not optional in range specification
Дата
Msg-id CAKFQuwYJk-hHqzOC_QFREZzurfqEAKXvmNk71tYOTTcrZGY_KQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: ROW or RANGE not optional in range specification
Список pgsql-docs

Either I'm confused about the syntax description rules or the documentation for this aspect of window definitions is wrong.

The expression:

[ RANGE | ROWS ]  BETWEEN frame_start AND frame_end

means that the specification of range or rows is optional - but that doesn't appear to be the case...

The documentation should read:

{ RANGE | ROWS } BETWEEN frame_start AND frame_end

Same goes for the bare frame_start specification preceding the between version.

The bare version looks funny without tag but "ORDER BY idx BETWEEN 5 PRECEDING AND CURRENT ROW" isn't obviously wrong until you get a syntax error...

David J.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCH] Fix stray sentence fragment in shared_preload_libraries documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ROW or RANGE not optional in range specification