Re: BUG #3723: dropping an index that doesn't refer to table's columns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3723: dropping an index that doesn't refer to table's columns
Дата
Msg-id 18640.1194358905@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3723: dropping an index that doesn't refer to table's columns  ("Sam Mason" <sam@samason.me.uk>)
Ответы Re: BUG #3723: dropping an index that doesn't refer to table's columns  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-bugs
"Sam Mason" <sam@samason.me.uk> writes:
> I've just discovered that an index that doesn't refer to any of its table's
> columns isn't automatically dropped when its table is.

A straightforward solution would be to ban such "indexes".

> p.s. the reason for creating this strange index was to ensure that a maximum
> of one row was inserted into the table---I can do this different ways for
> now.

Please explain how you thought it would help you do that, because
without some evidence that there's a use-case, I'm inclined to fix it
as above ...

            regards, tom lane

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

Предыдущее
От: "Henning Nitschke"
Дата:
Сообщение: BUG #3722: PSQLWarning missing call to super in CTOR
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #3723: dropping an index that doesn't refer to table's columns