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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kynn(at)panix(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE
Date: 2006-05-06 02:08:58
Message-ID: 349.1146881338@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<kynn(at)panix(dot)com> writes:
> 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.

What lock? The error is "permission denied". It looks like whatever
user you're running pg_dump as doesn't have USAGE permission on that
schema.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message kynn 2006-05-06 12:25:43 How to list all the privileges a user has?
Previous Message Alvaro Herrera 2006-05-06 01:57:42 Re: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE