pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dinesh Bhandary <dbhandary@iii.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org
Subject: Re: restore
Date: Tue, 05 Oct 2010 11:32:29 -0700
Message-ID: <4CAB6F3D.3000706@iii.com> (raw)
In-Reply-To: <4CAB24F40200002500036550@gw.wicourts.gov>
References: <4CAB698B.4040402@iii.com>
	<4CAB24F40200002500036550@gw.wicourts.gov>

  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
>
>
>




view thread (6+ messages)  latest in thread

Message-ID: <4CAB6F3D.3000706@iii.com>
Permalink:  ../4CAB6F3D.3000706@iii.com/
Also on:    postgresql.org/message-id/4CAB6F3D.3000706@iii.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: dbhandary@iii.com, Kevin.Grittner@wicourts.gov
  Subject: Re: restore
  In-Reply-To: <4CAB6F3D.3000706@iii.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox