Re: deadlock while re-indexing table
От
Tom Lane
Тема
Re: deadlock while re-indexing table
Дата
Msg-id
3509.1202853947@sss.pgh.pa.us
Ответ на
Re: deadlock while re-indexing table (Dave Cramer)
Список
Дерево обсуждения
deadlock while re-indexing table Dave Cramer <pg@fastcrypt.com>
Re: deadlock while re-indexing table Alvaro Herrera <alvherre@commandprompt.com>
Re: deadlock while re-indexing table Tom Lane <tgl@sss.pgh.pa.us>
Re: deadlock while re-indexing table Alvaro Herrera <alvherre@commandprompt.com>
Re: deadlock while re-indexing table Tom Lane <tgl@sss.pgh.pa.us>
Re: deadlock while re-indexing table Dave Cramer <pg@fastcrypt.com>
Re: deadlock while re-indexing table Gregory Stark <stark@enterprisedb.com>
Re: deadlock while re-indexing table Dave Cramer <pg@fastcrypt.com>
Re: deadlock while re-indexing table Tom Lane <tgl@sss.pgh.pa.us>
Re: deadlock while re-indexing table Dave Cramer <pg@fastcrypt.com>
Re: deadlock while re-indexing table Gregory Stark <stark@enterprisedb.com>
Dave Cramer writes: >>> The other process is inserting into the user_profile table. >> >> Did either transaction do anything else in the same transaction >> previously? >> > It would appear that the insert is running before the reindex starts. That's not possible --- if it had been, the insert would already have RowExclusiveLock on the table, which would have blocked the reindex from acquiring ShareLock on the table. The reindex must already have that, since it's trying to acquire AccessExclusiveLock on one of the indexes, so there can't be any active inserts on the table. I suspect the other process must be doing a series of selects in one transaction that use indexes of the table in some random order, but that's just an educated guess at this point. BTW, what PG version is this? regards, tom lane
В списке pgsql-general по дате отправления