From: Jodi Kanter <jkanter@virginia.edu>
To: Florian Helmberger <f.helmberger@uptime.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: adding fields
Date: Fri, 18 Jan 2002 10:20:13 -0500
Message-ID: <00b601c1a033$a026acf0$de138f80@virginia.edu> (raw)
References: <OPEOLKEAAIMGBAMJNACKAEGMDHAA.f.helmberger@uptime.at>
Thank you. I found this doc just after I sent the email. I appreciate the quick response.
Jodi
----- Original Message -----
From: Florian Helmberger
To: Jodi Kanter
Cc: pgsql-admin@postgresql.org
Sent: Friday, January 18, 2002 10:14 AM
Subject: RE: [ADMIN] adding fields
Hi.
You should use
ALTER TABLE <table> ADD COLUMN <column> <datatyp>;
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jkanter@virginia.edu, f.helmberger@uptime.at
Subject: Re: adding fields
In-Reply-To: <00b601c1a033$a026acf0$de138f80@virginia.edu>
References: <OPEOLKEAAIMGBAMJNACKAEGMDHAA.f.helmberger@uptime.at> <00b601c1a033$a026acf0$de138f80@virginia.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox