From jkanter@virginia.edu Wed Sep 25 14:34:24 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AB727475EFB for ; Wed, 25 Sep 2002 10:34:24 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id E52CB475EE1 for ; Wed, 25 Sep 2002 10:34:23 -0400 (EDT) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa04247; 25 Sep 2002 10:32 EDT Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.11.6/8.11.6) with SMTP id g8PEWrG26570 for ; Wed, 25 Sep 2002 10:32:53 -0400 Message-ID: <001801c264a0$b2d677e0$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: removing fields Date: Wed, 25 Sep 2002 10:34:47 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C2647F.2B73D1B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/257 X-Sequence-Number: 5796 This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C2647F.2B73D1B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Does version 7.2 of Postgresql allow us to remove a column from a table? It= does not appear to be working but I may be getting the syntax wrong. I tho= ught this was a feature that was going to be added?? Thanks Jodi _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_0015_01C2647F.2B73D1B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Does version 7.2 of Postgresql allow us= to=20 remove a column from a table? It does not appear to be working but I m= ay be=20 getting the syntax wrong. I thought this was a feature that was going to be= =20 added??
Thanks
Jodi

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_0015_01C2647F.2B73D1B0-- From kevinb@nurseamerica.net Wed Sep 25 14:48:38 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 48D2847611A for ; Wed, 25 Sep 2002 10:48:38 -0400 (EDT) Received: from dilbert.nurseamerica.net (unknown [207.53.237.114]) by postgresql.org (Postfix) with ESMTP id BC3DB4760D7 for ; Wed, 25 Sep 2002 10:48:36 -0400 (EDT) Received: from alice.nurseamerica.local (airband-216-138-83-219.airband.net [216.138.83.219] (may be forged)) by dilbert.nurseamerica.net (8.11.6/8.11.6) with ESMTP id g8PEo0407773 for ; Wed, 25 Sep 2002 09:50:00 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: Re: removing fields MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Sep 2002 09:48:40 -0500 Message-ID: <7BF926886CBE34418B490E18B041B733032138@alice.nurseamerica.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] removing fields Thread-Index: AcJkoK2Ni/z0JVPiTcqqPOp//SqnNgAAdqny From: "Kevin Brannen" To: "Jodi Kanter" , "Postgres Admin List" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/258 X-Sequence-Number: 5797 Not in 7.2, but it's in 7.3(beta). HTH... -----Original Message----- From: Jodi Kanter [mailto:jkanter@virginia.edu] Sent: Wed 9/25/2002 9:34 AM To: Postgres Admin List Cc:=09 Subject: [ADMIN] removing fields Does version 7.2 of Postgresql allow us to remove a column from a table? It= does not appear to be working but I may be getting the syntax wrong. I tho= ught this was a feature that was going to be added?? Thanks Jodi _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 From andrew@libertyrms.info Wed Sep 25 18:41:18 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C17A9475C98 for ; Wed, 25 Sep 2002 14:41:18 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id 28AFF4758F1 for ; Wed, 25 Sep 2002 14:41:18 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17uH66-00064B-00 for ; Wed, 25 Sep 2002 14:41:18 -0400 Date: Wed, 25 Sep 2002 14:41:18 -0400 From: Andrew Sullivan To: Postgres Admin List Subject: Re: removing fields Message-ID: <20020925144118.G12535@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , Postgres Admin List References: <001801c264a0$b2d677e0$de138f80@virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001801c264a0$b2d677e0$de138f80@virginia.edu>; from jkanter@virginia.edu on Wed, Sep 25, 2002 at 10:34:47AM -0400 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/269 X-Sequence-Number: 5808 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 From Devinder.Rajput@ipaper.com Thu Sep 26 00:56:32 2002 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