X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id ACF11D1BAA4 for ; Wed, 20 Aug 2003 12:12:57 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 86503-04 for ; Wed, 20 Aug 2003 12:12:47 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 777FDD1B92B for ; Wed, 20 Aug 2003 12:12:46 -0300 (ADT) Received: (qmail 13723 invoked by uid 500); 20 Aug 2003 15:18:31 -0000 Date: Wed, 20 Aug 2003 10:18:31 -0500 From: Bruno Wolff III To: Jodi Kanter Cc: Gaetano Mendola , pgsql-admin@postgresql.org Subject: Re: changing field length Message-ID: <20030820151831.GA13575@wolff.to> Mail-Followup-To: Jodi Kanter , Gaetano Mendola , pgsql-admin@postgresql.org References: <3F426DB0.1040607@virginia.edu> <000d01c36685$78b2c090$10d4a8c0@mm.eutelsat.org> <3F4382C6.3030101@virginia.edu> <20030820142639.GA10047@wolff.to> <3F438A64.8030206@virginia.edu> <20030820145847.GB11204@wolff.to> <3F4390C2.6050106@virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4390C2.6050106@virginia.edu> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/221 X-Sequence-Number: 9942 On Wed, Aug 20, 2003 at 11:16:18 -0400, Jodi Kanter wrote: > Ok. so for now I want to return to where I started. so I renamed the > table and regenerated my original table with the fields in the order > that I like. I cannot just do a > insert into table select * from other_table; > because the fields are in a different order. > Can I do this by listing the fields in my insert in the order in which I > want them placed? Yes. Instead of using '*' list the columns from the table that currently has the data in the order that they appear in the table that is currently empty.