Re: add more frame types in window functions (ROWS)

Поиск
Список
Период
Сортировка
От Hitoshi Harada
Тема Re: add more frame types in window functions (ROWS)
Дата
Msg-id e08cc0400911142304n780c3371vb3c0bb89b0e9216a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: add more frame types in window functions (ROWS)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: add more frame types in window functions (ROWS)
Список pgsql-hackers
2009/11/15 Tom Lane <tgl@sss.pgh.pa.us>:
> Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
>> (A question here: the spec allows (by my reading) the use of
>> parameters in the window frame clause, i.e. BETWEEN $1 PRECEDING AND
>> $2 FOLLOWING.  Wouldn't it therefore make more sense to treat the
>> values as Exprs, albeit very limited ones, and eval them at startup
>> rather than assuming we know the node type and digging down into it
>> all over the place?)
>
> Seems like you might as well allow any expression not containing
> local Vars.  Compare the handling of LIMIT.

Hmm, I've read it wrong, was assuming a constant for <unsigned value
specification> which actually includes any expression. But it's a
fixed value during execution, right? Otherwise, we cannot predicate
frame boundary.

Regards,


--
Hitoshi Harada


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Inspection of row types in pl/pgsql and pl/sql
Следующее
От: Hitoshi Harada
Дата:
Сообщение: Re: add more frame types in window functions (ROWS)