Re: share lock when only one user connected?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: share lock when only one user connected?
Date: 2010-10-28 17:57:18
Message-ID: 23611.1288288638@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> writes:
> I'm running this query when I'm the only user and this should be the
> only thing running.

> And I get

> DETAIL: Process 7188 waits for ShareLock on transaction 110562621;
> blocked by process 7244. Process 7244 waits for ShareLock on
> transaction 110562544; blocked by process 7188.

It's pretty hard to believe that you haven't got two processes ...
maybe there's something using dblink down in there somewhere?

Also, if you're using a recent PG release, the postmaster log should
contain additional information about the deadlock, like the specific
queries involved on both sides.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message sub3 2010-10-28 19:08:15 Full Text Search - Slow on common words
Previous Message A.M. 2010-10-28 17:52:30 Re: Should PQconsumeInput/PQisBusy be expensive to use?