From: nick.baxter@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7886: date_trunc(date) returning timestamptz instead of timestamp
Date: Fri, 15 Feb 2013 21:27:40 +0000
Message-ID: <E1U6Som-0004Pz-RQ@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 7886
Logged by: Nick Baxter
Email address: nick.baxter@gmail.com
PostgreSQL version: 9.0.3
Operating system: Linux 2.6.18
Description:
9.9.2. indicates that date_trunc can be called with a date value (which will
be cast to a timestamp). And regardless of the input, that the result will
be of type timestamp. When I call it with a date, I get a timestamp with
time zone instead, as indicated by the psql output.
# select date_trunc('month',date '2013-2-15');
date_trunc
------------------------
2013-02-01 00:00:00-06
(1 row)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: nick.baxter@gmail.com
Subject: Re: BUG #7886: date_trunc(date) returning timestamptz instead of timestamp
In-Reply-To: <E1U6Som-0004Pz-RQ@wrigleys.postgresql.org>
References: <E1U6Som-0004Pz-RQ@wrigleys.postgresql.org>
* 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