Re: [BUGS] BUG #3774: create table like including index doesn't update pg_constraints with primary key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #3774: create table like including index doesn't update pg_constraints with primary key
Дата
Msg-id 29058.1196552812@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #3774: create table like including index doesn't update pg_constraints with primary key  (NikhilS <nikkhils@gmail.com>)
Ответы Re: [BUGS] BUG #3774: create table like including index doesn't update pg_constraints with primary key  (NikhilS <nikkhils@gmail.com>)
Список pgsql-hackers
NikhilS <nikkhils@gmail.com> writes:
> This can be handled by setting index->isconstraint appropriately inside
> generateClonedIndexStmt().

Done.

> The fundamental question though is should we allow primary, unique
> CONSTRAINTS which use the index mechanism just as an implementation to be
> created using the "INCLUDING INDEXES" mechanism.

Yeah, this bizarreness was foreseen and agreed to back when we set up
LIKE INCLUDING CONSTRAINTS the way it was defined (ie, copying only
CHECK constraints and not other things called constraints).  I was never
very thrilled with that definition myself, but it's a bit too late to
revisit it.
        regards, tom lane


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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: CommandCounterIncrement versus plan caching
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCHES] Re: [GENERAL] plperl and regexps with accented characters - incompatible?