Re: Table space question

From: Kevin Kempter <kevink(at)consistentstate(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Table space question
Date: 2010-04-02 20:38:16
Message-ID: 201004021438.16582.kevink@consistentstate.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 02 April 2010 12:44, akp geek wrote:
> Hi all -
>
> I have created dump of a database where I have a tablespace
> (data_tblspace ) associated with relations. I have restored to a different
> server. I created the same table space. Now I need to create an other
> database on the same server using the same dump. but I need to have a
> different tablespace for all the relations.
>
> Can you please suggest? Do I have to do the restore the
> database to the same tablespace first? and then alter the tablespace?
>
>
> Regards

Maybe something like this (assuming the dump file is in text/sql format):

sed "s/data_tblspace/new_tblspace/g" dump_file > new dump file

In response to

Browse pgsql-general by date

  From Date Subject
Next Message zhong ming wu 2010-04-03 00:41:09 any built-in function to get time in seconds?
Previous Message akp geek 2010-04-02 18:44:39 Table space question