Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7CA5BB5DC4A for ; Thu, 25 Aug 2011 16:05:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 68103-09 for ; Thu, 25 Aug 2011 19:05:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id AA5B8B5DC45 for ; Thu, 25 Aug 2011 16:05:35 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p7PJ5YYi075724 for ; Thu, 25 Aug 2011 19:05:34 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p7PJ5YLe075723; Thu, 25 Aug 2011 19:05:34 GMT (envelope-from www) Date: Thu, 25 Aug 2011 19:05:34 GMT Message-Id: <201108251905.p7PJ5YLe075723@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6178: date_trunc : interval units "week" not supported contradicts documentation From: "Noah Hamerslough" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/158 X-Sequence-Number: 30970 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.