X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D8473476128 for ; Thu, 1 May 2003 12:39:47 -0400 (EDT) Received: from smtp803.mail.sc5.yahoo.com (smtp803.mail.sc5.yahoo.com [66.163.168.182]) by postgresql.org (Postfix) with SMTP id 28FF7476083 for ; Thu, 1 May 2003 12:39:37 -0400 (EDT) Received: from adsl-67-38-17-182.dsl.sfldmi.ameritech.net (HELO lcshost) (dlangschied@ameritech.net@67.38.17.182 with login) by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP; 1 May 2003 16:39:42 -0000 Message-ID: <004601c31000$45627270$6401a8c0@lcshost> From: "dlangschied" To: "Brian Panulla" Cc: References: Subject: Re: Adding a field to an existing table. Date: Thu, 1 May 2003 12:39:43 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=-12.8 required=5.0 tests=BAYES_20,QUOTED_EMAIL_TEXT,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/9 X-Sequence-Number: 8571 Thanks! Sincerely, David Langschied Langschied Consulting Services 25644 Mackinac Roseville, MI 48066 Phone: (586)777-7542 Cell: (248)789-8493 e-mail: dlangschied@ameritech.net ----- Original Message ----- From: "Brian Panulla" To: "dlangschied" Sent: Thursday, May 01, 2003 12:36 PM Subject: RE: [ADMIN] Adding a field to an existing table. > Sure.... check the docs on ALTER TABLE. You can add new fields to a table > and rename fields as well. I think the one thing you can't do is change data > type with an ALTER TABLE statement. You need to rename the field, add a new > one with the right data type, and migrate the data from old to new with a > query. > > Brian > > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of dlangschied > Sent: Thursday, May 01, 2003 12:32 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Adding a field to an existing table. > > > Hi! > I found the doc on sequences and this will work for me. I am still curious, > however, if you can simply add a field to a table without first dropping it. > > Sincerely, > > David Langschied > Langschied Consulting Services > 25644 Mackinac > Roseville, MI 48066 > > Phone: (586)777-7542 > Cell: (248)789-8493 > e-mail: dlangschied@ameritech.net > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html