Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3D465476A6A for ; Wed, 25 Sep 2002 20:56:32 -0400 (EDT) Received: from birch.ipaper.com (mx01.ipaper.com [141.129.1.7]) by postgresql.org (Postfix) with ESMTP id 080AD476A05 for ; Wed, 25 Sep 2002 20:56:31 -0400 (EDT) Received: from swmta1.ipaper.com (swmta1.ipaper.com [164.103.62.7]) by birch.ipaper.com (8.10.2+Sun/8.10.2) with ESMTP id g8Q0wvS10487 for ; Wed, 25 Sep 2002 19:58:57 -0500 (CDT) Subject: Re: removing fields To: Postgres Admin List X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: "Devinder K Rajput" Date: Wed, 25 Sep 2002 19:56:32 -0500 X-MIMETrack: Serialize by Router on SWMTA1.ipaper.com/IPAPER(Release 5.0.8 |June 18, 2001) at 09/25/2002 07:56:34 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/272 X-Sequence-Number: 5811 Yoou could do the following: SELECT list_of_all_columns_you_want_to_keep INTO TABLE new_table FROM old_table; DROP TABLE old_table; ALTER TABLE new_table RENAME TO old_table; I saw this in Bruce Momjian'n book "PostgreSQL Introduction and Concepts". Regards Devinder Rajput Stores Division Corporate Offices Chicago, IL (773) 442-6474 Andrew Sullivan o> cc: Sent by: Subject: Re: [ADMIN] removing fields pgsql-admin-owner@post gresql.org 09/25/2002 01:41 PM On Wed, Sep 25, 2002 at 10:34:47AM -0400, Jodi Kanter wrote: > Does version 7.2 of Postgresql allow us to remove a column from a > table? No. > syntax wrong. I thought this was a feature that was going to be > added?? Yes. 7.3. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org