Re: empty view, replace view, column type change? - Mailing list pgsql-sql

From Rod Taylor
Subject Re: empty view, replace view, column type change?
Date
Msg-id 1119558411.35441.104.camel@home
Whole thread Raw
In response to Re: empty view, replace view, column type change?  (Markus Bertheau <twanger@bluetwanger.de>)
Responses Re: empty view, replace view, column type change?
List pgsql-sql
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.

-- 



pgsql-sql by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: empty view, replace view, column type change?
Next
From: Tom Lane
Date:
Subject: Re: empty view, replace view, column type change?