Re: pg_dump & table space

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Luca Ferrari <fluca1978(at)infinito(dot)it>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump & table space
Date: 2009-06-01 07:05:59
Message-ID: 4A237DD7.3020502@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Luca Ferrari wrote:
> Hi,
> is there a way to dump an entire database which has a specific table space
> without having in the sql file any reference to the tablespace? This can be
> useful when moving the database from one machine to another (that does not use
> the tablespace). Any way to achieve that with pg_dump?
>

dump in ascii format, edit the resultant SQL file and remove any
references to the tablespace. this could probably be done with a perl
or sed script if the file is too large for a conventional text editor.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-06-01 07:18:55 Re: pg_dump & table space
Previous Message Andrew Smith 2009-06-01 06:41:08 Re: newbie table design question