Re: reindex and copy - deadlock?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: reindex and copy - deadlock?
Дата
Msg-id 18875.1087921568@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: reindex and copy - deadlock?  (Litao Wu <litaowu@yahoo.com>)
Список pgsql-performance
Litao Wu <litaowu@yahoo.com> writes:
> I have changed "reindex table my_table" to:
> psql ...
>   -c "drop index my_index; create index my_index;"

> I do not know what caused this happen, and I
> am also confused. If create index my_index is killed
> by "-9", then my_index should not present in the
> database because it has been dropped before creating.

I believe that the above executes the two commands in a single
transaction.  So if you kill it midway through the CREATE, everything
rolls back and the index is still there.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Hi!
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: postgresql and openmosix migration