Re: empty view, replace view, column type change?

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: PgSQL - SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: empty view, replace view, column type change?
Date: 2005-06-23 20:26:51
Message-ID: 1119558411.35441.104.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

--

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Markus Bertheau 2005-06-23 20:27:57 Re: empty view, replace view, column type change?
Previous Message Markus Bertheau 2005-06-23 20:21:58 Re: empty view, replace view, column type change?