Re: Changing Field Ordinal Position

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Changing Field Ordinal Position
Date: 2010-10-22 17:49:13
Message-ID: 20101022174913.GA10242@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Chris Campbell <ccampbell(at)cascadeds(dot)com> wrote:

> Using PostgreSQL 9.0.1
>
>
>
> Hi, is it possible to change the ordinal position of fields in a table, or,
> more specifically, be able to specify the ordinal position when adding new
> fields to a table. I see that each field has a property called “position” yet

No. There is no way to do that, sorry.

Consider an other way: specify all columns in the right order in your
select-statement. Or create a view with the (for you) right order.

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Chris Campbell 2010-10-22 19:45:11 Re: Changing Field Ordinal Position
Previous Message Chris Campbell 2010-10-22 17:38:30 Changing Field Ordinal Position