X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8778747633A for ; Mon, 24 Mar 2003 14:21:50 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id B9665476326 for ; Mon, 24 Mar 2003 14:21:48 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h2OJuV6P002718; Mon, 24 Mar 2003 14:56:31 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h2OJLlp24303; Mon, 24 Mar 2003 14:21:48 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTKQT1; Mon, 24 Mar 2003 14:21:46 -0500 Subject: Re: alter table From: Robert Treat To: Jodi Kanter Cc: Postgres Admin List In-Reply-To: <00c601c2f238$61f67f70$de138f80@virginia.edu> References: <00c601c2f238$61f67f70$de138f80@virginia.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 24 Mar 2003 14:21:47 -0500 Message-Id: <1048533707.13798.320.camel@camel> Mime-Version: 1.0 X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/406 X-Sequence-Number: 8046 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