pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mallah@trade-india.com
Cc: pgsql-performance@postgresql.org
Subject: Re: factoring problem with view in 7.3.3 [ PARTIALLY SOLVED ]
Date: Wed, 23 Jul 2003 12:47:43 -0400
Message-ID: <13916.1058978863@sss.pgh.pa.us> (raw)
In-Reply-To: <1270.219.65.226.100.1058978229.squirrel@mail.trade-india.com>
References: <200307231551.48444.mallah@trade-india.com>
	<13446.1058975001@sss.pgh.pa.us>
	<1270.219.65.226.100.1058978229.squirrel@mail.trade-india.com>

<mallah@trade-india.com> writes:
> the column 'generated' was timestamp in 2 place and date in 2 place,
> i wanted it in my and did a typecasting in the view below
> but it suffers from the same problem .

AFAIR it should work if you insert casts into the UNION's member selects.
Maybe you didn't get the casting quite right?  (For instance,
"timestamp" isn't "timestamp with time zone" ...)

			regards, tom lane



view thread (2+ messages)

Message-ID: <13916.1058978863@sss.pgh.pa.us>
Permalink:  ../13916.1058978863@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13916.1058978863@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mallah@trade-india.com
  Subject: Re: factoring problem with view in 7.3.3 [ PARTIALLY SOLVED ]
  In-Reply-To: <13916.1058978863@sss.pgh.pa.us>
  References: <200307231551.48444.mallah@trade-india.com> <13446.1058975001@sss.pgh.pa.us> <1270.219.65.226.100.1058978229.squirrel@mail.trade-india.com> <13916.1058978863@sss.pgh.pa.us>

* 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