Re: pg_restore exclude schema from being droped option

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kostis Mentzelos <mentzelos(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_restore exclude schema from being droped option
Date: 2007-01-26 21:18:44
Message-ID: 29142.1169846324@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kostis Mentzelos <mentzelos(at)gmx(dot)net> writes:
> Now, to backup the database I choose to create 2 scripts, BackupData.sh
> to backup all small tables and BackupHist.sh to backup history tables.
> When I call pg_restore -c to restore data tables, pg_restore report a
> failure because it is trying to drop a schema that it is not empty.

Why (or how) is the schema part of the backup at all? If you used
pg_dump's -t switch to select the tables to back up, there should not be
a schema entry in the dump. So there's something you're not telling us
about how you are using the tools.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2007-01-26 21:26:40 Re: BUG #2917: spi_prepare doesn't accept typename aliases
Previous Message Simon Riggs 2007-01-26 21:17:37 Re: Proposal: Snapshot cloning