From: Jonathan Parkin <jonathan.parkin@legendplc.com>
To: Pandurangan R S <pandurangan.r.s@gmail.com>
Cc: PostgreSQL Admin Mailing List <pgsql-admin@postgresql.org>
Subject: Re: PostgreSQL 7.4.10 hanging on delete
Date: 21 Dec 2005 10:10:05 +0000
Message-ID: <1135159805.27920.70.camel@jparkin.local> (raw)
In-Reply-To: <5e744e3d0512210002o7bb0f782oaacdb9a64160e0fe@mail.gmail.com>
References: <1135095712.14411.1260.camel@jparkin.local>
<5e744e3d0512210002o7bb0f782oaacdb9a64160e0fe@mail.gmail.com>
There are no conflicting locks; this occurs both concurrently with other
processes (dealing with other rows) and when the only two processes with
locks on the database are the one that hangs and the one I'm using to
examine pg_locks.
On Wed, 2005-12-21 at 08:02, Pandurangan R S wrote:
> When the delete statements hangs, look into the pg_locks table, to
> check if the delete statement is waiting because it has conflict with
> rows locked by other transactions.
>
> On 20 Dec 2005 16:21:53 +0000, Jonathan Parkin
> <jonathan.parkin@legendplc.com> wrote:
> > I have a reasonably large, live, system-critical database. A perl
> > script on another machine connects and issues a sequence of commands in
> > a transaction, the last of which is a delete. The delete never returns
> > a response, and the connection never times out. The postgres process
> > handling the delete is in a scheduled state, but stracing it produces no
> > output at all.
[Remainder of original message cut for brevity]
--
Best Regards
Jonathan Parkin
Developer
Legend Communications plc
T: 0844 390 2049
F: 0844 390 2001
E: jonathan.parkin@legendplc.com
W: http://www.legend.co.uk/
The information in this message is confidential and may be legally
privileged. Unauthorised disclosure, copying or distribution, either
whole or in part; or action taken in reliance on its content is
prohibited. If you are not the intended recipient, please notify Legend
Communications immediately.
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: jonathan.parkin@legendplc.com, pandurangan.r.s@gmail.com
Subject: Re: PostgreSQL 7.4.10 hanging on delete
In-Reply-To: <1135159805.27920.70.camel@jparkin.local>
References: <1135095712.14411.1260.camel@jparkin.local> <5e744e3d0512210002o7bb0f782oaacdb9a64160e0fe@mail.gmail.com> <1135159805.27920.70.camel@jparkin.local>
* 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