Re: Error for WITH options on partitioned tables

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Error for WITH options on partitioned tables
Дата
Msg-id CANbhV-EmEV0YxFJ7=o3fm0qGTTiysz9tod1OPR72QzMHDSxR+g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Error for WITH options on partitioned tables  (Karina Litskevich <litskevichkarina@gmail.com>)
Ответы Re: Error for WITH options on partitioned tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: New docs chapter on Transaction Management and related changes
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: thinko in basic_archive.c