X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5970A9F9806 for ; Fri, 5 May 2006 23:09:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63777-04 for ; Fri, 5 May 2006 23:09:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 894CC9F9C18 for ; Fri, 5 May 2006 23:09:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4628wTk000350; Fri, 5 May 2006 22:08:58 -0400 (EDT) To: kynn@panix.com cc: pgsql-admin@postgresql.org Subject: Re: Permission denied: LOCK TABLE test.__proc IN ACCESS SHARE MODE In-reply-to: <200605060144.k461i8S04751@panix3.panix.com> References: <200605060144.k461i8S04751@panix3.panix.com> Comments: In-reply-to message dated "Fri, 05 May 2006 21:44:08 -0400" Date: Fri, 05 May 2006 22:08:58 -0400 Message-ID: <349.1146881338@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/62 X-Sequence-Number: 21594 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