From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | schen(at)graciousstyle(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [ADMIN] how to find transaction associated with a lock |
Date: | 2004-07-26 16:42:57 |
Message-ID: | 28911.1090860177@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-novice |
Si Chen <schen(at)graciousstyle(dot)com> writes:
> Thanks for your help last week. I had the problem again where things
> got hung up during a transaction, and it was at the order_header table.
> Here is what the pg_locks show. Does it confirm what you are saying,
> which is that multiple transactions have tried to insert into this table?
It's impossible to tell much of anything from a partial view of the
pg_locks table. You didn't show us the "granted" flag, so we can't
tell which rows represent held locks and which represent waited-for
locks; and you didn't show transaction locks at all, which are probably
where the issue really is anyway.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Hoover | 2004-07-26 17:49:00 | Max varchar size |
Previous Message | Si Chen | 2004-07-26 16:38:06 | Re: [ADMIN] how to find transaction associated with a lock |
From | Date | Subject | |
---|---|---|---|
Next Message | Lincoln Yeoh | 2004-07-26 16:50:25 | Re: Sql injection attacks |
Previous Message | Greg Stark | 2004-07-26 16:41:44 | Re: Sql injection attacks |
From | Date | Subject | |
---|---|---|---|
Next Message | Rafael Charnovscki | 2004-07-26 19:08:14 | Varchar or integer primary key? |
Previous Message | Si Chen | 2004-07-26 16:38:06 | Re: [ADMIN] how to find transaction associated with a lock |