pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Graham Vickrage <graham@digitalplanit.com>
Cc: Postgres SQL <pgsql-sql@postgresql.org>
Subject: Re: Strategy for unlocking query
Date: Wed, 04 Apr 2001 12:07:17 -0400
Message-ID: <10900.986400437@sss.pgh.pa.us> (raw)
In-Reply-To: <NDBBJABDILOPAOOMFJHOGEAJCJAA.graham@digitalplanit.com>
References: <NDBBJABDILOPAOOMFJHOGEAJCJAA.graham@digitalplanit.com>

"Graham Vickrage" <graham@digitalplanit.com> writes:
> I have just done a rather large transaction via a telnet/psql session which
> executed OK. The problem occured when the telnet session timed out before I
> could commit the rows.

> This must have locked the rows in question because when I tried to vacuum
> the table it just hung.

Probably the backend process was still there and didn't yet realize that
the client connection had died.  It would notice eventually, but I think
the timeout involved is typically an hour or so (this is determined by
the TCP protocols and isn't under our control).

> What is the best way of dealing with this problem as I ended up stopping and
> restarting the postmaster?

It would've been sufficient to find and SIGTERM the individual backend
from the lost session.

			regards, tom lane



view thread (2+ messages)

Message-ID: <10900.986400437@sss.pgh.pa.us>
Permalink:  ../10900.986400437@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10900.986400437@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, graham@digitalplanit.com
  Subject: Re: Strategy for unlocking query
  In-Reply-To: <10900.986400437@sss.pgh.pa.us>
  References: <NDBBJABDILOPAOOMFJHOGEAJCJAA.graham@digitalplanit.com> <10900.986400437@sss.pgh.pa.us>

* 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