X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 351C2528B7 for ; Thu, 23 Jun 2005 17:29:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 41777-02 for ; Thu, 23 Jun 2005 20:29:27 +0000 (GMT) Received: from tht.net (vista.tht.net [216.126.88.2]) by svr1.postgresql.org (Postfix) with ESMTP id 94A4952882 for ; Thu, 23 Jun 2005 17:29:27 -0300 (ADT) Received: from 209-161-193-22.dsl.look.ca (209-161-193-22.dsl.look.ca [209.161.193.22]) by tht.net (Postfix) with ESMTP id 9275E76D85; Thu, 23 Jun 2005 16:29:33 -0400 (EDT) Subject: Re: empty view, replace view, column type change? From: Rod Taylor To: Markus Bertheau Cc: PgSQL - SQL In-Reply-To: <1119558477.7430.22.camel@localhost.localdomain> References: <1119557009.7430.16.camel@localhost.localdomain> <1119557984.35441.95.camel@home> <1119558477.7430.22.camel@localhost.localdomain> Content-Type: text/plain; charset=iso-8859-2 Date: Thu, 23 Jun 2005 16:26:51 -0400 Message-Id: <1119558411.35441.104.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.021 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/289 X-Sequence-Number: 21890 On Thu, 2005-06-23 at 22:27 +0200, Markus Bertheau wrote: > Dnia 23-06-2005, czw o godzinie 16:19 -0400, Rod Taylor napisał(a): > > > The data types are different, as one has the timestamp to (6) decimal > > places after seconds. > > That's strange. I explicitly specified ::TIMESTAMP on both the view and > the table. Is that not unambiguous? LOCALTIMESTAMP is probably more specific, so it folds the length in. If you SELECT 'abc'::varchar(6)::varchar, the end type is varchar(6). Cast them both to timestamp(N) and what you're trying to do should work. --