From: Florian Helmberger <f.helmberger@uptime.at>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: adding fields
Date: Fri, 18 Jan 2002 16:14:39 +0100
Message-ID: <OPEOLKEAAIMGBAMJNACKAEGMDHAA.f.helmberger@uptime.at> (raw)
In-Reply-To: <00a401c1a030$3dfd0130$de138f80@virginia.edu>
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: f.helmberger@uptime.at, jkanter@virginia.edu
Subject: Re: adding fields
In-Reply-To: <OPEOLKEAAIMGBAMJNACKAEGMDHAA.f.helmberger@uptime.at>
References: <00a401c1a030$3dfd0130$de138f80@virginia.edu> <OPEOLKEAAIMGBAMJNACKAEGMDHAA.f.helmberger@uptime.at>
* 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