X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A70184766E6 for ; Thu, 15 May 2003 09:14:44 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 05873-09 for ; Thu, 15 May 2003 09:14:35 -0400 (EDT) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 8F9934766FE for ; Thu, 15 May 2003 09:14:35 -0400 (EDT) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h4FE1WM3031528; Thu, 15 May 2003 10:01:32 -0400 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h4FDEbL20971; Thu, 15 May 2003 09:14:38 -0400 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2YCPY088; Thu, 15 May 2003 09:14:36 -0400 Subject: Re: problems with moving a database From: Robert Treat To: Oliver Kullmann Cc: pgsql-admin@postgresql.org In-Reply-To: <20030514102354.GA8077@swan.ac.uk> References: <20030513180758.GB5534@swan.ac.uk> <20030514102354.GA8077@swan.ac.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 15 May 2003 09:14:37 -0400 Message-Id: <1053004477.18699.19.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/206 X-Sequence-Number: 8768 On Wed, 2003-05-14 at 06:23, Oliver Kullmann wrote: > On Wed, May 14, 2003 at 11:00:51AM +0530, A.Bhuvaneswaran wrote: > > > > > > > > Now I get > > > > > > > psql -dDB2 -U oliver < DB1.dmp > > > ERROR: pg_class: Permission denied. > > > > I highly suspect that it would be due to the non-super user trying to > > access super user privileges. > > Both on my laptop and on the pc, "normal users" are the owners of the database, > and they have all rights. > > > In your case, it would have happened like in > > your laptop, the database owner is the super user and in your pc, the > > database owner is not the super user. Check it. Note, pg_dump does update > > pg_class to enable/disable the triggers. > > but I don't use any triggers?! The dump starts with you do use triggers, you just don't realize it. postgresql is trying to disables the foreign key triggers when you reimport the data, but your user doesn't have access to the pg_* system tables, and so it is generating an error " pg_class: Permission denied.". You need to either make sure your user is a superuser, or drop the -x flag from your dump command (note this might cause other issues) Robert Treat