pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Brown <blargity@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Transactions
Date: Sat, 18 Mar 2006 01:49:12 -0500
Message-ID: <13784.1142664552@sss.pgh.pa.us> (raw)
In-Reply-To: <200603180045.44743.blargity@gmail.com>
References: <200603180020.01418.blargity@gmail.com>
	<13508.1142662755@sss.pgh.pa.us>
	<200603180045.44743.blargity@gmail.com>

Kevin Brown <blargity@gmail.com> writes:
> When the "deadlock" occurs:

> kevin@ajbit:~> ps -elF | grep postgres
> 1 S postgres 6020 17767 0 75  0 - 10585 -   15136  0 19:57 ?    
> 00:00:29 postgres: dli dli 127.0.0.1(39869) idle in transaction
> 1 S postgres 6195 17767 0 76  0 - 10323 semtim 14940  0 20:22 ?    
> 00:00:28 postgres: dli dli 127.0.0.1(37735) INSERT waiting

> You can see an insert is just waiting.  On what?

I'd bet it's waiting on the "idle in transaction" transaction, which is
waiting for a nonresponding client.  But the pg_locks view would tell
you more.

			regards, tom lane



view thread (58+ messages)  latest in thread

Message-ID: <13784.1142664552@sss.pgh.pa.us>
Permalink:  ../13784.1142664552@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13784.1142664552@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, blargity@gmail.com
  Subject: Re: Transactions
  In-Reply-To: <13784.1142664552@sss.pgh.pa.us>
  References: <200603180020.01418.blargity@gmail.com> <13508.1142662755@sss.pgh.pa.us> <200603180045.44743.blargity@gmail.com> <13784.1142664552@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