From: Christian Brink <cb@onsitetech.com>
To: Bhuvan A <bhuvansql@myrealbox.com>
To: pgsql-admin@postgresql.org
Subject: Re: deadlock problem in Ad serving..
Date: Mon, 20 Jan 2003 09:48:33 -0800
Message-ID: <ENEFIFGGPEDGDJMEMKECGENDGCAA.cb@onsitetech.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0301201527090.11065-100000@Bhuvan.bksys.co.in>
> > ~~~~~~~~~~~~~~~~~~~~~~
> > 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. More details can be
> found in the lock command documentation.
Since your using DBI all you need to do is turn AutoCommit off when you load
DBI and call commits after you verify your transaction succeeded. Turning
off AutoCommit wraps a 'begin transaction' around everything.
More info: http://www.perldoc.com/cpan/DBI.html#Transactions
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: cb@onsitetech.com, bhuvansql@myrealbox.com
Subject: Re: deadlock problem in Ad serving..
In-Reply-To: <ENEFIFGGPEDGDJMEMKECGENDGCAA.cb@onsitetech.com>
References: <Pine.LNX.4.44.0301201527090.11065-100000@Bhuvan.bksys.co.in> <ENEFIFGGPEDGDJMEMKECGENDGCAA.cb@onsitetech.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