Re: BUG #4238: pg_class.relhasindex not updated by vacuum

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4238: pg_class.relhasindex not updated by vacuum
Дата
Msg-id 12939.1213377161@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4238: pg_class.relhasindex not updated by vacuum  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: BUG #4238: pg_class.relhasindex not updated by vacuum
Список pgsql-bugs
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Lawrence Cohan wrote:
>> In that case the two separate pg_class relhasindex and relhaspkey would
>> make sense indeed - just a thought nothing else and we'll take it as is.

> What would be the point?  If you want to figure out whether a table has
> a primary key, you can query the catalogs.

Note that UNIQUE constraints are implemented by indexes too, so it's not
clear to me that special-casing the pkey would really respond to this
criticism anyway.

But the bottom line is that relhasindex is defined in terms of
possessing physical indexes, not whether those indexes arose from
constraint syntax or CREATE INDEX.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #4238: pg_class.relhasindex not updated by vacuum
Следующее
От: "Lawrence Cohan"
Дата:
Сообщение: Re: BUG #4238: pg_class.relhasindex not updated by vacuum