Re: problems with moving a database

From: "A(dot)Bhuvaneswaran" <bhuvansql(at)myrealbox(dot)com>
To: Oliver Kullmann <O(dot)Kullmann(at)Swansea(dot)ac(dot)uk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: problems with moving a database
Date: 2003-05-14 05:30:51
Message-ID: Pine.LNX.4.44.0305141054310.923-100000@Bhuvan.bksys.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> pg_dump -a -R -O -x DB1

Here pg_dump with -a, dumps only the data. Is it what you want? Does the
database exist in machine 2? If not, you should not use -a option. Rather,
use

$ pg_dump dbname -uf dbname.sql

which is enough to dump entire database.

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

regards,
bhuvaneswaran

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Battaje Sharath Rao 2003-05-14 09:21:53 Version 6.5.2
Previous Message jie zhang 2003-05-14 05:29:04 authentication error