Re: ALTER DROP COLUMN

From: "Brent R(dot) Matzelle" <bmatzelle(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ALTER DROP COLUMN
Date: 2001-02-13 16:41:33
Message-ID: 20010213164133.7872.qmail@web314.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- Fred Yankowski <fred(at)ontosys(dot)com> wrote:
> On Tue, Feb 13, 2001 at 06:40:30AM -0800, Brent R. Matzelle
> wrote:
> > You might also try dumping the database, dropping and
> > re-creating the database, and then hacking the dump to add,
> > delete, alter columns. That way the original structure
> should
> > remain intact.
>
> I find that the dump output is a pain to work with.
> Information that
> was concise when first defined ("id_stuff serial primary key")
> appears
> in least common denominator form as separate indexes,
> sequences,
> constraints, etc. And if I'm deleting a column, do I have to
> write
> Perl scripts or the like to strip out the obsolete column data
> from
> the "COPY ... FROM" sections? What a PITA.

Hey, you don't have to tell me that it's a pain. I was just
giving you another way to do the same thing.

<snip>

> [I just got dizzy and fell off my high horse. Oww...]
>

Everyone has to rant once and a while ;) Anyway, there is hope
in all of this. The PostgreSQL development team could build
support for it in some newer versions. And it's open source so
even you could hack the functionality it if you want. Hey, I'd
do it myself if I had the time and motivation. In the meantime
we'll just have to wait I guess.

Brent

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Wall 2001-02-13 17:08:01 Re: Re: ALTER DROP COLUMN
Previous Message Chris Jones 2001-02-13 16:29:02 Re: Re: Re: ALTER DROP COLUMN