Re: On partitioning

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: On partitioning
Дата
Msg-id CA+TgmoaA18DL8SG51tDQ=wjQBAqb658cR1TSV3diLmk_x9iRzQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: On partitioning  ("Amit Langote" <Langote_Amit_f8@lab.ntt.co.jp>)
Ответы Re: On partitioning  ("Amit Langote" <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-hackers
On Sun, Dec 14, 2014 at 9:12 PM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> This means if a user puts arbitrary expressions in a partition definition, say,
>
> ... FOR VALUES  extract(month from current_date) TO extract(month from current_date + interval '3 months'),
>
> we make sure that those expressions are pre-computed to literal values.

I would expect that to fail, just as it would fail if you tried to
build an index using a volatile expression.

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



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Logical Decoding follows timelines
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: pgbench -f and vacuum