| От | Sim Zacks |
|---|---|
| Тема | Re: transaction confusion |
| Дата | |
| Msg-id | 450E8991.8040209@compulab.co.il обсуждение исходный текст |
| Ответ на | Re: transaction confusion (Martijn van Oosterhout <kleptog@svana.org>) |
| Список | pgsql-general |
> I wonder if you set the transaction mode to "serializable" whether that > would make a difference. In standard read-committed the way it works > below seems to be what's expected (each transaction sees what was > committed at the time is ran). > I tried running this in both windows at the same time (this is the inserttest() without the update statment at the beginning): begin; set transaction ISOLATION LEVEL SERIALIZABLE; select inserttest(); commit; and I got this error: ERROR: could not serialize access due to concurrent update SQL state: 40001 Context: SQL statement "delete from testserial" PL/pgSQL function "inserttest" line 2 at SQL statement
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера