unable to restore. pg_restore: implied data-only restore

From: Tim Uckun <timuckun(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: unable to restore. pg_restore: implied data-only restore
Date: 2011-05-25 01:03:55
Message-ID: BANLkTi==SmVhLmeuBAFtqO-shCrgQc5ydw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to backup one database and restore it into a new schema in
another database. Database1 has the tables in the public schema
database2 has some tables in the public schema but their names will
clash so the database needs to be stored in a different schema.

I back up like this.

/usr/bin/pg_dump --host localhost --port 5432 --username tim --format
custom --blobs --verbose --file
"/usr/local/home/tim/tmp/database.backup" database1

/usr/bin/pg_restore --host localhost --port 5432 --username tim
--dbname database2 --schema database1_schema --verbose
"/usr/local/home/tim/tmp/database.backup"

pg_restore: connecting to database for restore
pg_restore: implied data-only restore

Nothing gets restored.

What is the proper way to restore databases into a particular schema?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2011-05-25 01:09:16 Re: Preventing OOM kills
Previous Message John R Pierce 2011-05-25 01:01:31 Re: Preventing OOM kills