pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Bryce Nesbitt <bryce1@obviously.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to cast, if type has spaces in the name
Date: Thu, 26 Jul 2007 08:00:59 -0700 (PDT)
Message-ID: <20070726075708.M12817@megazone.bigpanda.com> (raw)
In-Reply-To: <46A84E35.7000609@obviously.com>
References: <46A84E35.7000609@obviously.com>

On Thu, 26 Jul 2007, Bryce Nesbitt wrote:

> 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.

foo::timestamp without time zone should work (no quotes). Another
alternative if you don't like the way that looks is to use the SQL cast
syntax, CAST(foo AS timestamp without time zone).



view thread (4+ messages)

Message-ID: <20070726075708.M12817@megazone.bigpanda.com>
Permalink:  ../20070726075708.M12817@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20070726075708.M12817@megazone.bigpanda.com

 · 

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: sszabo@megazone.bigpanda.com, bryce1@obviously.com
  Subject: Re: How to cast, if type has spaces in the name
  In-Reply-To: <20070726075708.M12817@megazone.bigpanda.com>

* 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