pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Morton <fmorton@base2inc.com>
To: pgsql-sql@postgresql.org
Subject: alter help needed
Date: Sun, 29 Nov 1998 00:43:49 -0500
Message-ID: <005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.com> (raw)

As an example, given a table with 2 columns, if I want to add
a new column "between" the already existing columns, is there
any way to use "alter table" to do this?

The only way I can figure out how to do this and preserve the
data is to dump the database and write a script to modify
the dump by modifying the table structure plus the insert
statements reflecting the change. This seems more painful
and I must be missing an easier way to do this.

I am trying to come up with an automated way to deal with
multiple revisions of a database structure.

Any help? Thanks.

_________________________________
Frank Morton (fmorton@mail.base2inc.com)
Voice: (317) 876-3355
FAX: (317) 876-3398
Home: (317) 574-0815






view thread (3+ messages)  latest in thread

Message-ID: <005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.com>
Permalink:  ../005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.com/
Also on:    postgresql.org/message-id/005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.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 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-sql@postgresql.org
  Cc: fmorton@base2inc.com
  Subject: Re: alter help needed
  In-Reply-To: <005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.com>
  References: <005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.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