Skip site navigation (1) Skip section navigation (2)

Re: pg_restore error

From: Giles Lean <giles(at)nemeton(dot)com(dot)au>
To: "Curtis Mortensen" <shakiro2(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pg_restore error
Date: 2002-09-07 02:34:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Hi Curtis,

> thanks for the advice.  i now have a different error. :(

I suspected you would, but without knowing the commands you were using
decided guessing would only be confusing!  Only the archive formats
from pg_dump are intended to be used with pg_restore.  The default
output can be restored by psql:

$ pg_dump fubar > fubar.sql
$ createdb fubar2
$ psql fubar2 < fubar.sql
You are now connected as new user giles.

$ pg_dump --format=c fubar > fubar.dump
$ createdb fubar2
$ pg_restore --dbname=fubar2 < fubar.dump
pg_restore: [archiver] WARNING:
  Data restoration may fail because existing triggers cannot be disabled
  (no superuser user name specified).  This is only a problem when
  restoring into a database with already existing triggers.



pgsql-novice by date

Next:From: torres montaes manuel eduardoDate: 2002-09-07 06:13:31
Subject: Kdevelop and libpq++
Previous:From: Giles LeanDate: 2002-09-06 22:50:11
Subject: Re: pg_restore error

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group