How to cast, if type has spaces in the name - Mailing list pgsql-sql

From Bryce Nesbitt
Subject How to cast, if type has spaces in the name
Date
Msg-id 46A84E35.7000609@obviously.com
Whole thread Raw
Responses Re: How to cast, if type has spaces in the name  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: How to cast, if type has spaces in the name  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: How to cast, if type has spaces in the name  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-sql
How do I specify a cast, if the type name has spaces?  foo::integer is
easy,
but foo::'timestamp without time zone' is more murky.

In my case I have a table, and a view.  For no apparent reason the table
has
timestamp without time zone, but I need timestamp with time zone.
I'm using "select column at time zone 'PST8PDT'" to solve this problem.
But wonder
about the general case of typecasting when the type name is not a single
symbol.



pgsql-sql by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: The nested view from hell - Restricting a subquerry
Next
From: "A. Kretschmer"
Date:
Subject: Re: How to cast, if type has spaces in the name