pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah. <mallah@trade-india.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Bhuvan A <bhuvansql@myrealbox.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: deadlock problem in Ad serving..
Date: Tue, 21 Jan 2003 10:57:52 +0530
Message-ID: <200301211057.52890.mallah@trade-india.com> (raw)
In-Reply-To: <3021.1043075890@sss.pgh.pa.us>
References: <Pine.LNX.4.44.0301201527090.11065-100000@Bhuvan.bksys.co.in>
	<3021.1043075890@sss.pgh.pa.us>


Hi,

Guys thanks for the response..

I am using perl DBI. 

In fact i have tried doing the commit immediately 
after the update in the script then i saw my pg_stat_activity
reporting lots of queued update transactions.

I would like to discuss this problem further but not
able to do so at the moment. I have temporarily disabled impression 
counting. 

I am very thankful to you guys  for the
interest / response once again and will keep you posted.


regds
mallah.




On Monday 20 January 2003 08:48 pm, Tom Lane wrote:
> Bhuvan A <bhuvansql@myrealbox.com> writes:
> >> ~~~~~~~~~~~~~~~~~~~~~~
> >> Error: DBD::Pg::st execute failed: ERROR:  deadlock detected at
> >> /usr/local/perlapache/lib/perl/Banner.pm line 71, <GEN1> line 7.
> >> ~~~~~~~~~~~~~~~~~~~~~~
> >
> > It is a genuine error, occurs while two or more transaction process tries
> > to update/delete a same record simultaneously. You can overcome this by
> > locking the table in share row exclusive mode also.
>
> That will just move his problem somewhere else.  I think the only real
> answer is to use shorter transactions (one per page, not one per several
> pages).
>
> 			regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.



view thread (9+ messages)

Message-ID: <200301211057.52890.mallah@trade-india.com>
Permalink:  ../200301211057.52890.mallah@trade-india.com/
Also on:    postgresql.org/message-id/200301211057.52890.mallah@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com, tgl@sss.pgh.pa.us, bhuvansql@myrealbox.com
  Subject: Re: deadlock problem in Ad serving..
  In-Reply-To: <200301211057.52890.mallah@trade-india.com>
  References: <Pine.LNX.4.44.0301201527090.11065-100000@Bhuvan.bksys.co.in> <3021.1043075890@sss.pgh.pa.us> <200301211057.52890.mallah@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox