X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8CDDBD9994 for ; Tue, 27 Sep 2005 19:51:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52055-10 for ; Tue, 27 Sep 2005 22:51:02 +0000 (GMT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by svr1.postgresql.org (Postfix) with ESMTP id 8AEAFD99AA for ; Tue, 27 Sep 2005 19:51:03 -0300 (ADT) Received: from [192.168.1.12] ([68.239.68.205]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0INH00KBUZH39QG2@vms042.mailsrvcs.net> for pgsql-sql@postgresql.org; Tue, 27 Sep 2005 17:51:06 -0500 (CDT) Date: Tue, 27 Sep 2005 18:52:11 -0400 From: Ferindo Middleton Jr Subject: changing a column's position in table, how do you do that To: pgsql-sql@postgresql.org Reply-To: fmiddleton@verizon.net Message-id: <4339CD1B.10404@verizon.net> Organization: Sleek Collar MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.4 (Windows/20050908) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.346 required=5 tests=[AWL=-0.404, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376] X-Spam-Level: * X-Archive-Number: 200509/274 X-Sequence-Number: 22821 Is there a way to change the position attribute of a column in a table? I have data that I need to import into various tables in my db on a consistent basis... I usually us e the COPY ... FROM query but I can't control the -order- of the fields my client dumps the data so I would like to be able to change the position the columns in my table to be able to better align the data to be imported with the format of my table. I was thinking I could do something like "ALTER TABLE ALTER COLUMN ... " or something like that to change the columns position in the table but I can't figure out how. Ferindo