Postgres 8.3.1 RowExclusiveLock With JDBC XA

From: "Urciolo, Kevin" <Kevin(dot)Urciolo(at)ngc(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Postgres 8.3.1 RowExclusiveLock With JDBC XA
Date: 2008-09-08 15:20:28
Message-ID: 0E36CF63779A934D876C5E7FD29E74EB01420FCD@XMBIL123.northgrum.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am having a problem where row exclusive locks are causing applications
and vacuums to hang. I shutdown all applications, but the locks remain.
I stop and start postgres, but the locks are still there. A pid is not
listed. This problem started showing up after switching to the XA
datasource with the Postgres JDBC driver. Is this causing problems?

psql nafis
Welcome to psql 8.3.1, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

select pg_class.relname,pg_locks.* from pg_class,pg_locks where
pg_class.relfilenode=pg_locks.relation;

SNIP:
------------------------------------------------------------------------
--------------------------------------------------------
pid mode virtualtransaction granted locktype database
relation
(null) AccessShareLock -1/309809 true relation 16384
29478
(null) AccessShareLock -1/309809 true relation 16384
29497
(null) AccessShareLock -1/317897 true relation 16384
29145
(null) RowShareLock -1/317897 true relation 16384
29239
(null) AccessShareLock -1/317897 true relation 16384
29136
(null) AccessShareLock -1/317931 true relation 16384
29647
(null) RowExclusiveLock -1/317931 true relation
16384 29647
(null) AccessShareLock -1/309809 true relation 16384
29494
(null) RowShareLock -1/317931 true relation 16384
29347
(null) RowShareLock -1/317931 true relation 16384
29225
(null) AccessShareLock -1/317931 true relation 16384
29147
(null) AccessShareLock -1/317931 true relation 16384
29392
(null) RowExclusiveLock -1/317931 true relation
16384 29392
(null) RowShareLock -1/317931 true relation 16384
29239
11209 AccessShareLock 3/7 true relation 16384 10969
(null) AccessShareLock -1/317931 true relation 16384
29136
(null) AccessShareLock -1/317931 true relation 16384
29145
(null) AccessShareLock -1/309809 true relation 16384
29446
(null) RowExclusiveLock -1/309809 true relation
16384 29446
11209 AccessShareLock 3/7 true relation 16384 2663
(null) AccessShareLock -1/309809 true relation 16384
29447
(null) RowExclusiveLock -1/309809 true relation
16384 29447
(null) AccessShareLock -1/309809 true relation 16384
29466
(null) AccessShareLock -1/317897 true relation 16384
29392
(null) RowExclusiveLock -1/317897 true relation
16384 29392
(null) RowShareLock -1/317897 true relation 16384
29225
(null) AccessShareLock -1/317897 true relation 16384
29147
(null) AccessShareLock -1/309809 true relation 16384
29582

Browse pgsql-general by date

  From Date Subject
Next Message Alejandro D. Burne 2008-09-08 16:04:01 Re: [GENERAL] secure connections
Previous Message Randal T. Rioux 2008-09-08 13:38:45 Re: 64-bit Compile Failure on Solaris 10 with OpenSSL