pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: alter table
Date: 24 Mar 2003 14:21:47 -0500
Message-ID: <1048533707.13798.320.camel@camel> (raw)
In-Reply-To: <00c601c2f238$61f67f70$de138f80@virginia.edu>
References: <00c601c2f238$61f67f70$de138f80@virginia.edu>

On Mon, 2003-03-24 at 14:05, Jodi Kanter wrote:
> Is it possible to modify a column data type? I don't see it in the docs
> but thought I remembered something crossing this list regarding a modify
> command?
> Thanks
> Jodi
> 

You can do it by hacking at reltype in pg_class, though this will
probably only work if your data types are binary compatible, and even
then there might be some issues. Read thoroughly chapter 3 of the
developers guide and make sure to test on a development database before
trying to do this on anything resembling a production system.

Robert Treat




view thread (5+ messages)  latest in thread

Message-ID: <1048533707.13798.320.camel@camel>
Permalink:  ../1048533707.13798.320.camel@camel/
Also on:    postgresql.org/message-id/1048533707.13798.320.camel@camel

 · 

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: xzilla@users.sourceforge.net, jkanter@virginia.edu
  Subject: Re: alter table
  In-Reply-To: <1048533707.13798.320.camel@camel>
  References: <00c601c2f238$61f67f70$de138f80@virginia.edu> <1048533707.13798.320.camel@camel>

* 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