pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Hamerslough <noah@pcc.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6178: date_trunc : interval units "week" not supported contradicts documentation
Date: Thu, 25 Aug 2011 19:05:34 GMT
Message-ID: <201108251905.p7PJ5YLe075723@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6178
Logged by:          Noah Hamerslough
Email address:      noah@pcc.com
PostgreSQL version: 8.4
Operating system:   Windows Vista
Description:        date_trunc : interval units "week" not supported
contradicts documentation
Details: 

http://www.postgresql.org/docs/8.4/static/functions-datetime.html#FUNCTIONS-
DATETIME-TRUNC

The documentation for date_trunc('field', source) lists 'week' in the as a
valid value for 'field' However, if the source is an interval, 'week' is not
supported. 

 select date_trunc('week', '1 month 15 days'::interval);

 ERROR: interval units "week" not supported
 SQL state: 0A000

Either 'week' should be supported or the documentation should be updated to
reflect that it is not.



view thread (2+ messages)  latest in thread

Message-ID: <201108251905.p7PJ5YLe075723@wwwmaster.postgresql.org>
Permalink:  ../201108251905.p7PJ5YLe075723@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201108251905.p7PJ5YLe075723@wwwmaster.postgresql.org

 · 

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 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: noah@pcc.com
  Subject: Re: BUG #6178: date_trunc : interval units "week" not supported contradicts documentation
  In-Reply-To: <201108251905.p7PJ5YLe075723@wwwmaster.postgresql.org>
  References: <201108251905.p7PJ5YLe075723@wwwmaster.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