Re: BUG #1459: Connection hangs when other connection is not committed
В списке pgsql-bugs по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: BUG #1459: Connection hangs when other connection is not committed |
| Дата | |
| Msg-id | 200502041054.16723.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | BUG #1459: Connection hangs when other connection is not committed ("Rainer Frey" <rainer.frey@inxmail.de>) |
| Ответы |
Re: BUG #1459: Connection hangs when other connection is not
|
| Список | pgsql-bugs |
Am Donnerstag, 3. Februar 2005 16:11 schrieb Rainer Frey: > A select should not lock a table even when it is not committed. The SELECT obtains a read (shared) lock on the table, but the ALTER TABLE requires a write (exclusive) lock. This is certainly necessary because you don't want the structure of the table to be changed while you are reading it. Additionally, the locking protocol requires that all locks once obtained need to be held until the end of the transaction. Both of these issues together explain the problem you are seeing. There is nothing that can be done about it. -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера