Re: Non returning Transactions/Many Locks in Postgres 9.0.4 and 9.0.1

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: "Tarabas (Manuel Rorarius)" <tarabas(at)tarabas(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Non returning Transactions/Many Locks in Postgres 9.0.4 and 9.0.1
Date: 2011-06-06 18:40:18
Message-ID: BANLkTinB5viK3grQmdq1m4isNu=38tamwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jun 6, 2011 at 11:20 AM, Tarabas <tarabas(at)tarabas(dot)de> wrote:
> Hello!
>
> I am currently having a recurring Locking problem on my Postgres 9.0.4
> Database. I had the same Problem on 9.0.1 and updated to 9.0.4 then.
> It worked fine for a while and just resurfaced.
>
> Suddenly it seems as though there is some kind of "deadlock" in the
> database, which prevents my client from getting results for the open
> transactions, resulting in the system to stop delivering content.

[snip]

locktype|database|relation|page|tuple|virtualxid|transactionid|classid|objid|objsubid|virtualtransaction|pid|mode|granted
> relation|3285581|3287328||||||||15/240971|13069|AccessShareLock|t
> relation|3285581|3287327||||||||40/15748|9861|AccessShareLock|t
...[snip]

One thing that stands out here is that all the locks are 'granted' --
that means at least according to pg_locks your are not blocking in the
database. This is evidence the problem is in your end, not on the
server side...
*) is your application threaded?
*) are you using a connection pooler? (if so, which one?)

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2011-06-06 19:09:43 Re: Non returning Transactions/Many Locks in Postgres 9.0.4 and 9.0.1
Previous Message Scott Marlowe 2011-06-06 17:32:57 Re: How to log query's from servers ?