pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: kynn@panix.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE
Date: Fri, 5 May 2006 21:57:42 -0400
Message-ID: <20060506015742.GG12810@surnet.cl> (raw)
In-Reply-To: <200605060144.k461i8S04751@panix3.panix.com>
References: <200605060144.k461i8S04751@panix3.panix.com>

kynn@panix.com wrote:

> 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.

You are assuming that the problem is that there is a lock conflict.
This is not the case; you'd not get an error message (unless the command
had specified NOWAIT).

The problem here seems to be that you are trying to dump a schema or
table that the dumping user has no access to.  You may either grant
those permissions, or create the dump with another user.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (3+ messages)  latest in thread

Message-ID: <20060506015742.GG12810@surnet.cl>
Permalink:  ../20060506015742.GG12810@surnet.cl/
Also on:    postgresql.org/message-id/20060506015742.GG12810@surnet.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: alvherre@commandprompt.com, kynn@panix.com
  Subject: Re: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE
  In-Reply-To: <20060506015742.GG12810@surnet.cl>
  References: <200605060144.k461i8S04751@panix3.panix.com> <20060506015742.GG12810@surnet.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox