Rename Index - Deadlock

Поиск
Список
Период
Сортировка
От Thomas Kenner
Тема Rename Index - Deadlock
Дата
Msg-id 201003161045.58639.thomas.kenner@gmail.com
обсуждение исходный текст
Ответы Re: Rename Index - Deadlock  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Rename Index - Deadlock  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-sql
Hi,

Each day I'm recreating the index my_index of the table my_table. Therefore I 
create a new index my_index_new, drop the old index my_index, and rename the 
new index:
ALTER INDEX my_index_new RENAME TO my_index;

If an insert or select statement is run at the same time as the "ALTER INDEX 
... RENAME TO" statement, it will end up in a deadlock.

The index contains a foreign key (don't know if this information is 
important).

Is this a known issue?

Thanks, Thomas

-- 
Thomas Kenner


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

Предыдущее
От: Niklas Johansson
Дата:
Сообщение: Re: I, nead to capture the IP number from the PC how is running the script ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rename Index - Deadlock