X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 18DB39DCAD7 for ; Thu, 8 Dec 2005 03:21:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86963-06 for ; Thu, 8 Dec 2005 03:21:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id CAA0A9DD5E1 for ; Thu, 8 Dec 2005 03:21:50 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id jB87Lk94077999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 8 Dec 2005 00:21:48 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id jB87Lk76006723; Thu, 8 Dec 2005 00:21:46 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id jB87Lj2r006722; Thu, 8 Dec 2005 00:21:45 -0700 (MST) (envelope-from mfuhr) Date: Thu, 8 Dec 2005 00:21:45 -0700 From: Michael Fuhr To: Noel Doydora Cc: pgsql-sql@postgresql.org Subject: Re: cannot alter column data type to "date" Message-ID: <20051208072145.GA6671@winnie.fuhr.org> References: <20051208071207.43903CA07E@ws7-4.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051208071207.43903CA07E@ws7-4.us4.outblaze.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.046 required=5 tests=[AWL=0.046] X-Spam-Score: 0.046 X-Spam-Level: X-Archive-Number: 200512/70 X-Sequence-Number: 23612 On Thu, Dec 08, 2005 at 03:12:07PM +0800, Noel Doydora wrote: > Below is the message I receive when I try to alter the data type of > a column to "date". I had to drop the column and add it again just > so I can set its data type to "date". How do I change a column's > data type to "date" without dropping and then creating it again? See the USING clause in the ALTER TABLE documentation: http://www.postgresql.org/docs/8.0/interactive/sql-altertable.html -- Michael Fuhr