pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <pg@rbt.ca>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: PgSQL - SQL <pgsql-sql@postgresql.org>
Subject: Re: empty view, replace view, column type change?
Date: Thu, 23 Jun 2005 16:26:51 -0400
Message-ID: <1119558411.35441.104.camel@home> (raw)
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>

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.

-- 




view thread (8+ messages)  latest in thread

Message-ID: <1119558411.35441.104.camel@home>
Permalink:  ../1119558411.35441.104.camel@home/
Also on:    postgresql.org/message-id/1119558411.35441.104.camel@home

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pg@rbt.ca, twanger@bluetwanger.de
  Subject: Re: empty view, replace view, column type change?
  In-Reply-To: <1119558411.35441.104.camel@home>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox