Re: [NOVICE] alter table table add column

From: Ronald Rojas <ronald(dot)rojas(at)gmail(dot)com>
To: Michael Glaesemann <grzm(at)seespotcode(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [NOVICE] alter table table add column
Date: 2007-07-31 06:37:28
Message-ID: 1185863848.28634.19.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-novice pgsql-sql

Oh yes you have a good point. But then I will still have to test insert
and update on views.

Thanks a lot michael!

On Tue, 2007-07-31 at 00:56 -0500, Michael Glaesemann wrote:

> On Jul 31, 2007, at 0:23 , Ronald Rojas wrote:
>
> > Yes I know that procedure but I would like to insert in between
> > because I have at third party software that will call the said
> > schema and one of its dependencies with the mapping is it should
> > have the correct order with what the receiving end will be use for
> > the mapping. And in this case, I can't modify the receiving
> > structure (third-party) and the tables that I will be using is in
> > on production state. So would only mean that I have to schedule a
> > very fast maintenance, probably 5 to 10 secs just to re-initialize
> > the tables.
>
> Another option would be to use views to change the column order,
> which would work for selects. I believe you could create rules for
> insert and update as well, if necessary. Perhaps this would be a
> solution to your problem.
>
> Michael Glaesemann
> grzm seespotcode net
>
>

==================================================================================================
Ronald Rojas
Systems Administrator
Linux Registered User #427229
==================================================================================================

Arnold's Laws of Documentation:
(1) If it should exist, it doesn't.
(2) If it does exist, it's out of date.
(3) Only documentation for useless programs transcends the
first two laws.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Childs 2007-07-31 07:54:15 Re: [NOVICE] alter table table add column
Previous Message Oliver Elphick 2007-07-31 06:25:53 Re: alter table table add column

Browse pgsql-general by date

  From Date Subject
Next Message Andy Dale 2007-07-31 07:05:11 Manual Vaccum very slow with Autovaccum enabled
Previous Message David Fetter 2007-07-31 06:26:24 Re: plperl syntax highlighting for vi

Browse pgsql-novice by date

  From Date Subject
Next Message Luca Ferrari 2007-07-31 07:07:56 Re: doubt about datum
Previous Message Oliver Elphick 2007-07-31 06:25:53 Re: alter table table add column

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Childs 2007-07-31 07:54:15 Re: [NOVICE] alter table table add column
Previous Message Oliver Elphick 2007-07-31 06:25:53 Re: alter table table add column