On Fri, Feb 2, 2018 at 4:40 PM, Peter Eisentraut <peter.eisentr...@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