pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dlangschied <dlangschied@ameritech.net>
To: Brian Panulla <brian@elmwoodmedia.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Adding a field to an existing table.
Date: Thu, 1 May 2003 12:39:43 -0400
Message-ID: <004601c31000$45627270$6401a8c0@lcshost> (raw)
References: <NLEOKFJMNNIBEHOKDDENAECHCFAA.brian@elmwoodmedia.com>

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" <brian@elmwoodmedia.com>
To: "dlangschied" <dlangschied@Ameritech.Net>
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




view thread (4+ messages)  latest in thread

Message-ID: <004601c31000$45627270$6401a8c0@lcshost>
Permalink:  ../004601c31000$45627270$6401a8c0@lcshost/
Also on:    postgresql.org/message-id/004601c31000$45627270$6401a8c0@lcshost

 · 

reply

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: dlangschied@ameritech.net, brian@elmwoodmedia.com
  Subject: Re: Adding a field to an existing table.
  In-Reply-To: <004601c31000$45627270$6401a8c0@lcshost>
  References: <NLEOKFJMNNIBEHOKDDENAECHCFAA.brian@elmwoodmedia.com> <004601c31000$45627270$6401a8c0@lcshost>

* 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