Received: from dl380.matrixware.at ([62.116.87.11]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0IFFNV65279 for ; Fri, 18 Jan 2002 10:15:23 -0500 (EST) (envelope-from f.helmberger@uptime.at) Received: from florianpc (fw.uptime.at [62.116.87.2]) by dl380.matrixware.at (8.11.6/8.11.0) with SMTP id g0IFFOh18298; Fri, 18 Jan 2002 16:15:24 +0100 From: "Florian Helmberger" To: "Jodi Kanter" Cc: Subject: Re: adding fields Date: Fri, 18 Jan 2002 16:14:39 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01C1A03B.3AACEAD0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <00a401c1a030$3dfd0130$de138f80@virginia.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Archive-Number: 200201/120 X-Sequence-Number: 3007 This is a multi-part message in MIME format. ------=_NextPart_000_0038_01C1A03B.3AACEAD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi. You should use ALTER TABLE ADD COLUMN ; instead. Also, take a look at the docs: http://www.postgresql.org/idocs/index.php?sql-altertable.html Cheers, Florian -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.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 _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu ------=_NextPart_000_0038_01C1A03B.3AACEAD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi.
 
You should use
 
  ALTER TABLE <table> ADD COLUMN <column>=20 <datatyp>;
 
instead. Also, take a look at the=20 docs:
 
  http= ://www.postgresql.org/idocs/index.php?sql-altertable.html=
 
Cheers,
Florian
-----Original Message-----
From:=20 pgsql-admin-owner@postgresql.org=20 [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi=20 Kanter
Sent: Friday, January 18, 2002 3:56 PM
To: Pos= tgres=20 Admin List
Subject: [ADMIN] adding fields

I need to add a field to an existing table that contains a good amou= nt of=20 data. Do I need to drop table, recreate, and then reload data to do this?= I=20 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
<= SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt;= mso-fareast-font-family: 'MS Mincho'">

 

 

 

------=_NextPart_000_0038_01C1A03B.3AACEAD0--