Re: WINDOW RANGE patch versus leakproofness

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: WINDOW RANGE patch versus leakproofness
Дата
Msg-id CA+TgmoZGn+DVT14PgN_JTgGZQwLw9qH79L-TZgi9Z4jabOr+Kw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WINDOW RANGE patch versus leakproofness  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: WINDOW RANGE patch versus leakproofness
Список pgsql-hackers
On Wed, Jan 31, 2018 at 5:52 AM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> On 30 January 2018 at 16:42, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> So I'm thinking that (a) we do not need to check for leaky functions used
>> in window support, and (b) therefore there's no need to avoid leaky
>> behavior in in_range support functions.  Objections?
>
> Yes, I concur. Since window functions can only appear in the SELECT
> target list and ORDER BY clauses, they should never appear in a qual
> that gets considered for push down, and thus contain_leaked_vars()
> should never see a window function.

What about a query that uses window functions within a subquery?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: A typo in error message
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: doc: clearify trigger behavior for inheritance