problem backup/restore PSQL DB

From: "JieJun Xu" <jiejun83(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: problem backup/restore PSQL DB
Date: 2006-07-25 00:26:51
Message-ID: 75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,
I am trying to backup a psql database in one system(Debian), and restore
it to another system(ubuntu) which has a fresh installed psql db. However,
I got the following errors. Can anyone give me some help on solving it. Many
thanks.

-------------
OME Restore
-------------

\_ Extracting postgres database ome and checking archive version
/bin/tar --preserve-permissions --same-owner --directory /tmp -xf
'ome_backup_2006-07-24.tar' OMEmaint omeDB_backup \_ Checking archive for
OMEIS files
/bin/tar -tf 'ome_backup_2006-07-24.tar' Files/lastFileID
\_ Restoring postgress database ome
Checking database
Database ome (version 2.23) was found and it will be overwritten. Continue
? [y/n]: y
su postgres -c '/usr/bin/createuser --adduser --createdb ome'
createuser: creation of new user failed: ERROR: user "ome" already exists
su postgres -c '/usr/bin/createdb -T template0 ome'
CREATE DATABASE
su postgres -c '/usr/bin/pg_restore -O -d ome
--use-set-session-authorization /tmp/omeDB_backup'
pg_restore: [archiver (db)] could not execute query: ERROR: user "rajesh"
does not exist

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Paul S 2006-07-25 00:46:30 Re: problem backup/restore PSQL DB
Previous Message Kevin Keith 2006-07-24 16:27:25 Alter table set statistics with partitioned tables