Re: 7.2b Timestamp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Smith <dave(at)candata(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 7.2b Timestamp
Date: 2001-11-14 22:10:38
Message-ID: 8353.1005775838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dave Smith <dave(at)candata(dot)com> writes:
> Has some thing changed with the timestamp function since 7.0

The word "timestamp" is more reserved than it used to be, because
7.2 adds support for SQL92 timestamp precision options ---
timestamp(6) is now a type name, not a function call.

This means you need to write
select "timestamp"(date '1998-02-24', time '23:07');
to get the result you are after. Pain in the neck, I agree.

Actually, if the result you are after is timestamp with time zone,
you might try
select timestamptz(date '1998-02-24', time '23:07');
to avoid needing quotes.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jason Earl 2001-11-14 22:16:12 Re: Please help me Sir !
Previous Message Cristóvão Dalla Costa 2001-11-14 21:30:20 Re: storing binary data