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

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: <4CAB24F40200002500036550@gw.wicourts.gov>
Permalink:  ../4CAB24F40200002500036550@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4CAB24F40200002500036550@gw.wicourts.gov

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, dbhandary@iii.com
  Subject: Re: restore
  In-Reply-To: <4CAB24F40200002500036550@gw.wicourts.gov>
  References: <4CAB698B.4040402@iii.com> <4CAB24F40200002500036550@gw.wicourts.gov>

* 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