Re: [badalex@gmail.com: Re: [BUGS] Problem identifying constraints which should not be inherited]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [badalex@gmail.com: Re: [BUGS] Problem identifying constraints which should not be inherited]
Дата
Msg-id 5873.1210168338@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [badalex@gmail.com: Re: [BUGS] Problem identifying constraints which should not be inherited]  ("Alex Hunsaker" <badalex@gmail.com>)
Список pgsql-patches
"Alex Hunsaker" <badalex@gmail.com> writes:
> Currently this loops through all the constraints for a relation (old
> behavior of MergeAttributesIntoExisting)... Do you think its worth
> adding a non-unique index to speed this up?

No.  If we were to refactor pg_constraint as I mentioned earlier,
then it could have a natural primary key (reloid, constrname)
(replacing the existing nonunique index on reloid) and then a number
of things could be sped up.  But just piling more indexes on a
fundamentally bad design doesn't appeal to me ...

Will review the revised patch today.

            regards, tom lane

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: column level privileges
Следующее
От: Simon Riggs
Дата:
Сообщение: [Fwd: Re: [HACKERS] pg_dump additional options for performance]