Re: Bug #671: server corrupt

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #671: server corrupt
Дата
Msg-id 20916.1022271216@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug #671: server corrupt  ("Heng Sun" <sunheng@hotmail.com>)
Список pgsql-bugs
"Heng Sun" <sunheng@hotmail.com> writes:
> But my question is: will this completely get around the problem of server
> corrupt? In particular, if in a transaction, the "nextval" is called on a
> sequence different from the sequence we are trying to drop, would there be a
> problem? My tests showed NO problem in this situation. Also the analysis
> from Tom Lane seems confirming this. But I am still not sure on this.

I believe there is no problem in that case.  The AccessShareLock held by
the other guy will actually hold off your attempt to drop the sequence
until he commits.  The reason we can see the bug in the single-backend
case is that your own AccessShareLock won't block you from getting the
exclusive lock needed to drop the sequence.

            regards, tom lane

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

Предыдущее
От: "Heng Sun"
Дата:
Сообщение: Re: Bug #671: server corrupt
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #676: lower(), upper(), & initcap() do not work on utf-8 chars