Re: Found a bug

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема Re: Found a bug
Дата
Msg-id 65937bea0611070801n31458927jcf8a8f041e0c19a7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Found a bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thanks for the references.

Note for future: should have tried VACUUM too.

On 11/7/06, Tom Lane <tgl@sss.pgh.pa.us > wrote:
"Gurjeet Singh" < singh.gurjeet@gmail.com> writes:
>     Please refer the following session snippet. It seems that creating and
> dropping an index on a table, within a transaction, leaves the table marked
> as having an index.

This isn't a bug.  Refer to catalogs.sgml:

relhasindex
        True if this is a table and it has (or recently had) any indexes.
        This is set by CREATE INDEX, but not cleared immediately by DROP
        INDEX. VACUUM clears relhasindex if it finds the table has no indexes.

The flag is only used as a hint that it's worth looking in pg_index to
see what rows there are for the table.

As for "tracking it down", read index_drop().

                        regards, tom lane



--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | yahoo }.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Found a bug
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Block B-tree etc. (was Re: Introducing an advanced Frequent Update)