Re: Boolean partitions syntax - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Boolean partitions syntax
Date
Msg-id CA+TgmoZCinMWJ=UJ0W48rF02pWZ0ihrjkba=iiZAM+LjBC1sUg@mail.gmail.com
Whole thread Raw
In response to Re: Boolean partitions syntax  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Boolean partitions syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Feb 2, 2018 at 4:40 PM, Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:
> There might be other options, but one way to solve this would be to
> treat partition bounds as a general expression in the grammar and then
> check in post-parse analysis that it's a constant.

Yeah -- isn't the usual way of handling this to run the user's input
through eval_const_expressions and see if the result is constant?

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Draft release notes for 10.2 et al
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Restrict concurrent update/delete with UPDATE ofpartition key