Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0NKTvl05850 for ; Wed, 23 Jan 2002 15:29:57 -0500 (EST) (envelope-from nickf@ontko.com) Received: from 1cust174.tnt1.richmond.in.da.uu.net ([63.27.103.174] helo=nick) by swan.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16TU1t-00039n-00; Wed, 23 Jan 2002 12:29:57 -0800 Reply-To: From: "Nick Fankhauser" To: "Jodi Kanter" , "Postgres Admin List" Subject: Re: drop column? Date: Wed, 23 Jan 2002 15:25:59 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: <008401c1a447$cd0402f0$de138f80@virginia.edu> X-Archive-Number: 200201/152 X-Sequence-Number: 3039 >Can I remove this column or will I need to drop the entire table and restore from backup? There's not a "remove column" option for alter table, but you may be able to get around restoring by renaming the existing table, creating a replacement the way you want it to look, & then copy from the old to new using "insert into table newtable (col1,col2) values (select col1,col2 from oldtable);" -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/