Re: CREATE COLLATION - check for duplicate options and error out if found one

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: CREATE COLLATION - check for duplicate options and error out if found one
Дата
Msg-id CAEZATCVEARY2UOF4TA4+O8ChAU1VBv6=EdEobmBBMWwdpOiCEw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: CREATE COLLATION - check for duplicate options and error out if found one  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers
On Fri, 16 Jul 2021 at 12:17, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>
> On Fri, 16 Jul 2021 at 10:26, Bharath Rupireddy
> <bharath.rupireddyforpostgres@gmail.com> wrote:
> >
> > Thanks. The v5 patch LGTM.
>
> OK, I'll push that in a while.
>

Pushed, with some additional tidying up.

In particular, I decided it was neater to follow the style of the code
in typecmds.c, and just do a single check for duplicates at the end of
the loop, since that makes for a significantly smaller patch, with
less code duplication. That, of course, means duplicate "from" options
are handled the same as any other option, but that's arguably more
consistent, and not particularly important anyway, since it's not a
documented syntax.

Regards,
Dean



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Failure with 004_logrotate in prairiedog
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: CREATE COLLATION - check for duplicate options and error out if found one