Drop all indexes of a table w/o knowing the index names

Поиск
Список
Период
Сортировка
От Giulio Orsero
Тема Drop all indexes of a table w/o knowing the index names
Дата
Msg-id 20041109144039.1B2D313346@mail.golden.dom
обсуждение исходный текст
Ответы Re: Drop all indexes of a table w/o knowing the index names
Список pgsql-sql
7.4.6 on Linux.

I need a way to drop all indexes of a table without knowing the names of the
indexes.

Say I have a table

table1index1index2index3

I don't want to do

drop index1;
drop index2;
drop index3;

but I want

drop <all indexes of table table1>

is this possible? I looked in the manual at pg_index, but couldn't build an
sql string to do it.

Thanks

-- 
giulioo@pobox.com


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: A transaction in transaction? Possible?
Следующее
От: T E Schmitz
Дата:
Сообщение: Re: tricky GROUP BY / JOIN question