pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Oliver Kullmann <O.Kullmann@Swansea.ac.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: problems with moving a database
Date: 15 May 2003 09:14:37 -0400
Message-ID: <1053004477.18699.19.camel@camel> (raw)
In-Reply-To: <20030514102354.GA8077@swan.ac.uk>
References: <20030513180758.GB5534@swan.ac.uk>
	<Pine.LNX.4.44.0305141054310.923-100000@Bhuvan.bksys.co.in>
	<20030514102354.GA8077@swan.ac.uk>

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





view thread (5+ messages)  latest in thread

Message-ID: <1053004477.18699.19.camel@camel>
Permalink:  ../1053004477.18699.19.camel@camel/
Also on:    postgresql.org/message-id/1053004477.18699.19.camel@camel

 · 

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: xzilla@users.sourceforge.net, O.Kullmann@Swansea.ac.uk
  Subject: Re: problems with moving a database
  In-Reply-To: <1053004477.18699.19.camel@camel>
  References: <20030513180758.GB5534@swan.ac.uk> <Pine.LNX.4.44.0305141054310.923-100000@Bhuvan.bksys.co.in> <20030514102354.GA8077@swan.ac.uk> <1053004477.18699.19.camel@camel>

* 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