Re: [NOVICE] alter table table add column

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: Ronald Rojas <ronald(dot)rojas(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [NOVICE] alter table table add column
Date: 2007-07-31 05:56:11
Message-ID: 3345E320-08CF-465E-93AC-DAFBD59AA35C@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-novice pgsql-sql


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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Oliver Elphick 2007-07-31 06:25:53 Re: alter table table add column
Previous Message Ronald Rojas 2007-07-31 05:23:11 Re: [NOVICE] alter table table add column

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2007-07-31 06:25:53 Re: alter table table add column
Previous Message Ronald Rojas 2007-07-31 05:23:11 Re: [NOVICE] alter table table add column

Browse pgsql-novice by date

  From Date Subject
Next Message Oliver Elphick 2007-07-31 06:24:34 Re: SQL_CALC_FOUND_ROWS equivalent in PostgreSQL
Previous Message Tom Lane 2007-07-31 05:40:03 Re: doubt about datum

Browse pgsql-sql by date

  From Date Subject
Next Message Oliver Elphick 2007-07-31 06:25:53 Re: alter table table add column
Previous Message Tom Lane 2007-07-31 05:34:08 Re: Migration from SQLite Help (Left Join)