From: | Dinesh Bhandary <dbhandary(at)iii(dot)com> |
---|---|
To: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: restore |
Date: | 2010-10-05 18:32:29 |
Message-ID: | 4CAB6F3D.3000706@iii.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)iii(dot)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
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Julius T | 2010-10-05 19:56:49 | query execution time |
Previous Message | Scott Whitney | 2010-10-05 18:19:28 | Re: restore |