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 4874 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 load.
The statement is
DELETE from userlogins WHERE numlogins <= 0
the schema for the userlogins table is
|
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 messages in
the database log file:
NOTICE: _sc_id=0, _add_flag=0, _itemcount=0, _i_id=597, _pp_i_id=159,
c_id=32760
ERROR: deadlock detected...
|
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 "access_log", the referential integrity
triggers generate these queries:
SELECT 1 FROM ONLY "public"."application_type" x
|
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 I understand
is to wait for however long it takes to acquire a lock.
Also there are other processes that have acquired row level exclusive
locks...
|
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 -- our
application then retrieves the data from the Cache -- the cache is set
to expire in approximately 25 minutes -- but since the Crawler...
| |
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 able to find a solution for this besides the fact of just try the operation again at a later time.
I did try it again and again throughout the day,...
|
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 more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
|
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 restart IIS or wait until IIS
detects that there is a deadlock issue and resets itself. We are constantly
seeing an event show in the event log. After...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |