pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zot O'Connor <zot@zotconsulting.com>
To: postgres sql <pgsql-sql@hub.org>
Subject: Converting an existing table?
Date: Fri, 17 Sep 1999 14:04:07 -0700
Message-ID: <37E2ACC7.E2513AD9@zotconsulting.com> (raw)

I need to change the type on an existing table.  From money to something
else.

What is the best way under postgres?

I could do a query and put it in a new field and then rename the old
field, and then rename the new field.

I then have the old (renamed) field hanging around.  Is there a cleaner
way of doing this?

I also need to change the length of a variable length field.

-- 
Zot O'Connor

www.ZotConsulting.com
www.WhiteKnightHackers.com



view thread (2+ messages)  latest in thread

Message-ID: <37E2ACC7.E2513AD9@zotconsulting.com>
Permalink:  ../37E2ACC7.E2513AD9@zotconsulting.com/
Also on:    postgresql.org/message-id/37E2ACC7.E2513AD9@zotconsulting.com

 · 

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-sql@postgresql.org
  Cc: zot@zotconsulting.com, pgsql-sql@hub.org
  Subject: Re: Converting an existing table?
  In-Reply-To: <37E2ACC7.E2513AD9@zotconsulting.com>
  References: <37E2ACC7.E2513AD9@zotconsulting.com>

* 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