Skip site navigation (1) Skip section navigation (2)

Changing Field Ordinal Position

From: Chris Campbell <ccampbell(at)cascadeds(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Changing Field Ordinal Position
Date: 2010-10-22 17:38:30
Message-ID: 453A24085F801842AEA8D0B6B269065D301F8C4C10@HDMC.cds.local (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
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 there seems to be no way to change it, or, when fields are dropped from a table does it seem to update.

I looked at the ALTER [ COLUMN ] column SET ( attribute_option = value [, ... ] ) and RESET ( attribute_option [, ... ] ) but according to the documentation this only applies to n_distinct and n_distinct_inherited properties.  Thank you for any assistance...

Chris Campbell
Cascade Data Solutions, Inc.
(800) 280-2090


pgsql-novice by date

Next:From: Andreas KretschmerDate: 2010-10-22 17:49:13
Subject: Re: Changing Field Ordinal Position
Previous:From: Frank BaxDate: 2010-10-22 11:24:33
Subject: Re: "duplicate key value": version 8.4 vs 8.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group