I have a deadlock detected in my postgres log file. My application is getting into such situation in every 4-5 days. Below is the log message: -
Process 21865 waits for ShareLock on transaction 9981406; blocked by process 24027.
-
Process 24027 waits for ExclusiveLock on tuple (1316,26) of relation 16631 of database 16393; blocked by process 21865.
-
Process 21865: update fs_item set version=$1, createdby=$2, lastupdateddate=$3, updatedby=$4, receiptdate=$5, receivedby=$6, credit_amount=$7, credit_currency=$8, credit_systemamount=$9, credit_systemcurrency=$10, credit_exchangerate=$11, ercreceiptdate=$12, ercreceivedby=$13 where itemid=$14 and version=$15
-
Process 24027: update fs_item set version=$1, createdby=$2, lastupdateddate=$3, updatedby=$4, receiptdate=$5, receivedby=$6, credit_amount=$7, credit_currency=$8, credit_systemamount=$9, credit_systemcurrency=$10, credit_exchangerate=$11, ercreceiptdate=$12, ercreceivedby=$13 where itemid=$14 and version=$15
-
Is there any why by which i can debug this issue?
Please let me know if there is any clue to the same. We are using Hibernate + ehcahe + Postgres in our application.
Thanks & Regards,
1 4867 rski 700
Recognized Expert Contributor
It looks that two processes 21865 and 24027 execute the same update statement without commiting it. Probably there is some unique key or primary key on that table.
Maybe you have to commit every DML query after executing it.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Robert Brown |
last post by:
I have a deadlock that's happening on one oracle instance but cannot
be reproduced on any other. It is always caused by the same SQL
statement colliding with itself and only happens under very high...
|
by: Jenny Zhang |
last post by:
I am running OSDL-dbt1 - an e-commerce workload
(http://www.osdl.org/lab_activities/kernel_testing/osdl_database_test_suite/osdl_dbt-1/)
against PostgreSQL: 7.3.3. During the test, I saw a lot of...
|
by: Grant McLean |
last post by:
Hi
First a simple question ...
I have a table "access_log" that has foreign keys "app_id" and
"app_user_id" that reference the "application_type" and "app_user"
tables. When I insert into...
|
by: Sumanth |
last post by:
Hi ,
I am trying to acquire a lock on a table A in exclusive mode, and this
statement gives an error indicating a deadlock or timeout
has been detected. The lock timeout value is set to 0 which...
|
by: Zubair.NET! |
last post by:
In our web application we are calling different XML Webservices and
make approximately 25 calls every 10 minutes. We use a separate thread
to call a the webservice (Crawler) and populate our cache...
| |
by: kavin |
last post by:
hi,
can any one help me in detecting a deadlock and to clear the deadlock
when it occours?
how to monitor the databases for deadlocks?
|
by: amoldiego |
last post by:
Hi,
I am updating same row of the Same Table in 2 diff session, i.e, for deadlock situation
In 1st session
declare
a number(5) := 123;
begin
update ba_bank_mast set COD_BANK=a;
end;
|
by: raccoon |
last post by:
keep getting an ora-04020: deadlock detected while trying to lock object
XDB. XDNDBKDJjilnd
The statement I'm trying to issue is:
REVOKE execute on abc."descript_T" FROM PUBLIC;
I am not...
|
by: Olav |
last post by:
Does anyone know what this means?
Olav
ISAPI 'c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll'
reported itself as unhealthy for the following reason: 'Deadlock detected'.
For...
|
by: =?Utf-8?B?TUt1YmljaW5h?= |
last post by:
We’re continuing having a problem with a production application. The
application uses ASP.NET web services and about once a day, the web services
stop responding. The only resolution is to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |