| От | Jean-Christian Imbeault |
|---|---|
| Тема | Deadlock error!? |
| Дата | |
| Msg-id | 3D8999F0.6080304@mega-bucks.co.jp обсуждение |
| Ответы |
Re: Deadlock error!?
|
| Список | pgsql-general |
I got the following error while running some php code: Warning: pg_exec() query failed: ERROR: deadlock detected in /www/htdocs/jc/import/import_orders.php on line 189 CONNECTION: could not execute query (update invoices set total_price=(select sum(price) from invoice_li where invoice_id=id)) This happened while the PHP code was running and and on the console I did this query: psql TMP -c "update invoices set payment_rcvd=true" The PHP code was executing SQL inside a transaction and the total running time is about 1 minute. Why a deadlock? Whatever is happening inside a transaction is given a snapshot of the DB and should be oblivious to other queries no? Jc
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера