Re: Report error position in partition bound check - Mailing list pgsql-hackers

From Amit Langote
Subject Re: Report error position in partition bound check
Date
Msg-id CA+HiwqHh4J=5VCGJJT1qf4mFXyo459riPnbj+YoE9v_QnB+hPA@mail.gmail.com
Whole thread Raw
In response to Re: Report error position in partition bound check  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
List pgsql-hackers
On Thu, Apr 9, 2020 at 10:51 PM Ashutosh Bapat
<ashutosh.bapat.oss@gmail.com> wrote:
>
> Hi Alexandra,
> As Michael said it will be considered for the next commitfest. But
> from a quick glance, a suggestion.
> Instead of passing NULL parsestate from ATExecAttachPartition, pass
> make_parsestate(NULL). parse_errorposition() takes care of NULL parse
> state input, but it might be safer this way. Better if we could cook
> up a parse state with the query text available in
> AlterTableUtilityContext available in ATExecCmd().

+1.  Maybe pass the *context* down to ATExecAttachPartition() from
ATExecCmd() rather than a ParseState.

-- 

Amit Langote
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: backup manifests
Next
From: Stephen Frost
Date:
Subject: Re: backup manifests