Re: Omitting tablespace creation from pg_dumpall...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chander Ganesan <chander(at)otg-nc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Omitting tablespace creation from pg_dumpall...
Date: 2006-06-16 03:38:12
Message-ID: 12796.1150429092@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Chander Ganesan <chander(at)otg-nc(dot)com> writes:
> I'd like to suggest that a feature be added to pg_dumpall to remove
> tablespace definitions/creation from the output. While the inclusion is
> important for backups - it's equally painful when attempting to migrate
> data from a development to production database. Since PostgreSQL won't
> create the directory that will contain the tablespace, the tablespace
> creation will fail. Following that, any objects that are to be created
> in that tablespace will fail (since the tablespace doesn't exist).

If the above statements were actually true, it'd be a problem, but they
are not true. The dump only contains "SET default_tablespace = foo"
commands, which may themselves fail, but they won't prevent subsequent
CREATE TABLE commands from succeeding.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chander Ganesan 2006-06-16 04:21:14 Re: Omitting tablespace creation from pg_dumpall...
Previous Message Qingqing Zhou 2006-06-16 03:36:23 Re: Out of memory error in 8.1.0 Win32

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-06-16 03:57:22 Re: Test request for Stats collector performance improvement
Previous Message Qingqing Zhou 2006-06-16 03:27:50 Re: Test request for Stats collector performance improvement