Re: Reordering columns in a table

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Reordering columns in a table
Date: 2006-01-06 20:00:45
Message-ID: 20060106200045.GE1989@kaufbach.delug.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

John McCawley <nospam(at)hardgeus(dot)com> schrieb:

> OK, one last question on the subject and I'll shut up. I would assume that
> all dependent database objects are also dropped when you drop the table, so
> you'd have to recreate all of your foreign keys (both directions) and
> triggers etc.?

Um, yes, this may be a problem. I don't know a practicable solution.
As i said, attach new columns at the end and formulate useful SELECT's and
INSERT's. Or, see also "Joshua D. Drake", create VIEWS.

>
> Andreas Kretschmer wrote:

Btw.: Top Posting with Fullquote Below (german: TOFU) are silly...
(-> http://learn.to/quote)

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Jim C. Nasby 2006-01-06 20:03:20 Re: Reordering columns in a table
Previous Message Jim C. Nasby 2006-01-06 19:56:40 Re: BUG #2150: PL/Python function delcared STABLE gets run repeatedly

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2006-01-06 20:03:20 Re: Reordering columns in a table
Previous Message Jim C. Nasby 2006-01-06 20:00:33 Re: Indexes works only on miss