Re: unable to restore. pg_restore: implied data-only restore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: unable to restore. pg_restore: implied data-only restore
Date: 2011-05-25 02:08:03
Message-ID: 23868.1306289283@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tim Uckun <timuckun(at)gmail(dot)com> writes:
>> There is no support for that built into pg_dump. You could try:
>> * dumping to a text script and doing search-and-replace for the schema
>> name on the script file.

> I did a dump without privileges or owners so I was thinking I could
> just replace the

> SET search_path = public, pg_catalog;

> At the top and it might work. However I do see a lot of comments with
> the schema name in them like.

The comments are not a problem, but in all but the simplest DB designs
there are likely to be some embedded references to the schema name, too.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2011-05-25 02:25:04 Re: Postgresql CBT
Previous Message Greg Smith 2011-05-25 02:06:40 Re: Postgresql CBT