Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE

From: <kynn(at)panix(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE
Date: 2006-05-06 01:44:08
Message-ID: 200605060144.k461i8S04751@panix3.panix.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

When I run pg_dump I get this error:

pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: permission denied for schema test
pg_dump: The command was: LOCK TABLE test.__proc IN ACCESS SHARE MODE

I can't find out what transaction is responsible for this lock. When
I look at the pg_locks table, I see only two locks, and they both seem
to be due to the fact that I am interacting with psql at the moment,
and this interaction is in no way directed to the database I'm trying
to dump.

Is there a way for me to find out the transaction responsible for the
lock that's causing the error message? If so, how can I kill this
transaction?

kj

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2006-05-06 01:57:42 Re: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE
Previous Message Vadim Pestovnikov 2006-05-05 21:02:52 handling errors of os.error module