Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (8.11.3/8.11.4) with SMTP id g0IFI6V65438 for ; Fri, 18 Jan 2002 10:18:06 -0500 (EST) (envelope-from jkanter@virginia.edu) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa04162; 18 Jan 2002 10:18 EST Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.9.3/8.9.3) with SMTP id KAA24444; Fri, 18 Jan 2002 10:18:05 -0500 Message-ID: <00b601c1a033$a026acf0$de138f80@virginia.edu> From: Jodi Kanter To: Florian Helmberger Cc: pgsql-admin@postgresql.org MMDF-Warning: Parse error in original version of preceding line at mail.virginia.edu References: Subject: Re: adding fields Date: Fri, 18 Jan 2002 10:20:13 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00B3_01C1A009.B73072C0" 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-Archive-Number: 200201/118 X-Sequence-Number: 3005 This is a multi-part message in MIME format. ------=_NextPart_000_00B3_01C1A009.B73072C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you. I found this doc just after I sent the email. I appreciate the q= uick response. Jodi ----- Original Message -----=20 From: Florian Helmberger=20 To: Jodi Kanter=20 Cc: pgsql-admin@postgresql.org=20 Sent: Friday, January 18, 2002 10:14 AM Subject: RE: [ADMIN] adding fields Hi. =20=20=20 You should use =20=20=20 ALTER TABLE ADD COLUMN ; =20=20=20 instead. Also, take a look at the docs: =20=20=20 http://www.postgresql.org/idocs/index.php?sql-altertable.html =20=20=20 Cheers, Florian -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgr= esql.org]On Behalf Of Jodi Kanter Sent: Friday, January 18, 2002 3:56 PM To: Postgres Admin List Subject: [ADMIN] adding fields I need to add a field to an existing table that contains a good amount = of data. Do I need to drop table, recreate, and then reload data to do this= ? I cannot seem to find any documentation to say otherwise. Thanks Jodi=20 _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20=20=20=20=20 =20=20=20=20=20 =20=20=20=20=20 ------=_NextPart_000_00B3_01C1A009.B73072C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thank you. I found this doc just after I sent the email. I appreciate = the=20 quick response.
Jodi
----- Original Message -----
Fro= m:=20 = Florian=20 Helmberger
Cc: pgsql-admin@postgresql.org
Sent: Friday, January 18, 2002 10:= 14=20 AM
Subject: RE: [ADMIN] adding fields=

Hi.
 
You should use
 
  ALTER TABLE <table> ADD COLUMN <column>=20 <datatyp>;
 
instead. Also, take a look at the=20 docs:
 
  ht= tp://www.postgresql.org/idocs/index.php?sql-altertable.html
 
Cheers,
Florian
-----Original Message-----
From: pgsql-admin-owner@post= gresql.org=20 [mailto:pgsql-admin-own= er@postgresql.org]On=20 Behalf Of Jodi Kanter
Sent: Friday, January 18, 2002 3:56= =20 PM
To: Postgres Admin List
Subject: [ADMIN] adding= =20 fields

I need to add a field to an existing table that contains a good am= ount=20 of data. Do I need to drop table, recreate, and then reload data to do = this?=20 I cannot seem to find any documentation to say otherwise.
Thanks
Jodi

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

 

 

 

------=_NextPart_000_00B3_01C1A009.B73072C0--