pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Lebedev <olebedev@waterford.org>
To: Postgres SQL Mailing List <pgsql-sql@postgresql.org>
Subject: URGENT: restoring a database
Date: Thu, 25 Oct 2001 19:22:34 -0600
Message-ID: <3BD8BADA.143F4B80@waterford.org> (raw)

Hi,
I think I got a problem here.
I tried to restore my database from dump.bac file, which was created
with
pg_dumpall -o > dump.bac
This is what I did:
> createdb replica
> psql -d replica -f dump.bac

Notice that I have two different databases stored in this file.
This is what I got:

You are now connected to database template1.
DELETE 3
psql:db_10_22_01.bac:7: ERROR:  CREATE USER: permission denied
psql:db_10_22_01.bac:8: ERROR:  CREATE USER: permission denied
psql:db_10_22_01.bac:9: ERROR:  CREATE USER: permission denied
psql:db_10_22_01.bac:11: ERROR:  pg_aclcheck: invalid user id 503
You are now connected to database template1 as user postgres.
psql:db_10_22_01.bac:18: ERROR:  CREATE DATABASE: database "webspectest"

already exists
You are now connected to database webspectest as user postgres.
CREATE
DROP
You are now connected as new user postgres.
psql:db_10_22_01.bac:48: NOTICE:  CREATE TABLE/PRIMARY KEY will create
implicit index 'activitytype_pkey' for table 'activitytype'
psql:db_10_22_01.bac:48: ERROR:  Relation 'activitytype' already exists
psql:db_10_22_01.bac:65: NOTICE:  CREATE TABLE/PRIMARY KEY will create
implicit index 'dcr_pkey' for table 'dcr'

Obviously, no database was created. Moreover, I can not access my
neither of my existing databases anymore.
When I try:
> psql webspectest
I get an error:
psql: FATAL 1: user "olebedev" does not exist

At this point I am completely stuck.
Please help.
thanks,

Oleg




view thread (2+ messages)  latest in thread

Message-ID: <3BD8BADA.143F4B80@waterford.org>
Permalink:  ../3BD8BADA.143F4B80@waterford.org/
Also on:    postgresql.org/message-id/3BD8BADA.143F4B80@waterford.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: olebedev@waterford.org
  Subject: Re: URGENT: restoring a database
  In-Reply-To: <3BD8BADA.143F4B80@waterford.org>

* 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