Re: Error for WITH options on partitioned tables - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Error for WITH options on partitioned tables
Date
Msg-id CANbhV-EmEV0YxFJ7=o3fm0qGTTiysz9tod1OPR72QzMHDSxR+g@mail.gmail.com
Whole thread Raw
In response to Re: Error for WITH options on partitioned tables  (Karina Litskevich <litskevichkarina@gmail.com>)
Responses Re: Error for WITH options on partitioned tables
List pgsql-hackers
On Mon, 7 Nov 2022 at 08:55, Karina Litskevich
<litskevichkarina@gmail.com> wrote:
>
> Hi David,
>
> > I am not very clear about why `build_reloptions` is removed in patch
> > `v2-0002-better-error-message-for-setting-parameters-for-p.patch`, if
> > you can help explain would be great.
>
> "build_reloptions" parses "reloptions" and takes for it a list of allowed
> options defined by the 5th argument "relopt_elems" and the 6th argument
> "num_relopt_elems", which are NULL and 0 in the removed call. If "validate"
> is false, it ignores options, which are not in the list, while parsing. If
> "validate" is true, it "elog"s ERROR when it meets option, which is not in the
> allowed list.

Karina's changes make sense to me, so +1.

This is a minor patch, so I will set this as Ready For Committer.

-- 
Simon Riggs                http://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: New docs chapter on Transaction Management and related changes
Next
From: Bharath Rupireddy
Date:
Subject: Re: thinko in basic_archive.c