Re: alter the column type

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: anson <anson_tsai(at)sina(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: alter the column type
Date: 2001-02-06 04:51:51
Message-ID: 3A7F82E7.EEC10B87@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> i would like to alter the column type which has exist in
> the table, i can't find anything about that, can anybody help me?

To effectively alter the type of a column, you must do a "create
table"/"insert into"/"create table as" combination to make an
intermediate temporary table with the correct type (of course, other
permutations of commands can give the desired result also).

- Thomas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ryan Kirkpatrick 2001-02-06 04:59:13 Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....
Previous Message Thomas Lockhart 2001-02-06 04:48:47 Re: How to modify type in table?