Re: restore - Mailing list pgsql-admin

From Dinesh Bhandary
Subject Re: restore
Date
Msg-id 4CAB6F3D.3000706@iii.com
Whole thread Raw
In response to Re: restore  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-admin
  Awesome, this will work. It won't retain the column name in insert
into statement. I was not sure if this will work with postgres 8.2.5 but
it does.

Thanks.

Dinesh
On 10/5/2010 11:15 AM, Kevin Grittner wrote:
> Dinesh Bhandary<dbhandary@iii.com>  wrote:
>
>> Is there an easy way to restore to a new table where the column
>> name have been changed but data remains the same?
>
> Restore to the old name and then rename the column?
>
> Access the backup file and change the COPY statement to the new
> column name?
>
> If you can redo the dump, you don't mind the load running a little
> slower, and the column order is the same -- dump with the --inserts
> switch?
>
> -Kevin
>
>
>


pgsql-admin by date:

Previous
From: Scott Whitney
Date:
Subject: Re: restore
Next
From: Julius T
Date:
Subject: query execution time