From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Fuhr <mike@fuhr.org>
Cc: Rod Taylor <pg@rbt.ca>
Cc: Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
Cc: pgsql-sql@postgresql.org
Subject: Re: time
Date: Thu, 10 Nov 2005 14:13:43 -0500
Message-ID: <11040.1131650023@sss.pgh.pa.us> (raw)
In-Reply-To: <20051110182139.GA87715@winnie.fuhr.org>
References: <1131635035.3529.143.camel@Desarrollo>
<1131646287.819.144.camel@home>
<20051110182139.GA87715@winnie.fuhr.org>
Michael Fuhr <mike@fuhr.org> writes:
> Am I missing something? Is there a reason not to simply cast the
> timestamp value to time?
> test=> select now()::time;
> now
> -----------------
> 11:19:19.892125
> (1 row)
> test=> select cast(now() as time);
> now
> -----------------
> 11:19:19.892125
> (1 row)
I think the OP was trying to use the functional cast syntax
time(now())
which worked long ago, but has not since we added the
SQL-spec time precision syntax.
regards, tom lane
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: tgl@sss.pgh.pa.us, mike@fuhr.org, pg@rbt.ca, jaltamirano@correolux.com.mx
Subject: Re: time
In-Reply-To: <11040.1131650023@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