pg_dump ignore tablespaces

From: "Gavin M(dot) Roy" <gavinmroy(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_dump ignore tablespaces
Date: 2007-07-15 02:30:18
Message-ID: af1bce590707141930q1fb5ca16ybdd2bf0c113c4727@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Recently I ran into an issue where restoring from pg_dump from one machine
to another with non-matching tablespaces. The primary issue is that index
creation will fail if the tablespace does not exist from the dump. I was
thinking to best solution for this would be a pg_dump option such as
--ignore-tablespaces which would not dump any tablespace related data. This
would benefit restoring a dump from one machine to another where there are
different disk or tablespace topologies.
If such a patch were presented and found to be acceptable code wise, would
it be a generally useful enough option to be included?

Gavin

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-07-15 02:56:33 Re: pg_dump ignore tablespaces
Previous Message Tom Lane 2007-07-15 02:23:24 Re: Warning for exceeding max locks?