Re: [BUGS] BUG #3774: create table like including index doesn't update pg_constraints with primary key
В списке pgsql-hackers по дате отправления:
| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера