On Sun, Dec 14, 2014 at 9:12 PM, Amit Langote
<langote_amit...@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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to