BUG #4739: strange behavior of EXTRACT(quarter from INTERVAL)

From: "Roman Kononov" <kononov(at)ftml(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4739: strange behavior of EXTRACT(quarter from INTERVAL)
Date: 2009-03-28 05:33:36
Message-ID: 200903280533.n2S5Xah8090804@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4739
Logged by: Roman Kononov
Email address: kononov(at)ftml(dot)net
PostgreSQL version: 8.3.7
Operating system: GNU/Linux x86_64
Description: strange behavior of EXTRACT(quarter from INTERVAL)
Details:

test=# select month, extract(quarter from (month::varchar || '
month')::interval) from tbl;
month | date_part
-------+-----------
-6 | -1
-5 | 0
-4 | 0
-3 | 0
-2 | 1
-1 | 1
0 | 1
1 | 1
2 | 1
3 | 2
4 | 2
5 | 2
6 | 3
(13 rows)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-03-28 16:34:02 Re: BUG #4739: strange behavior of EXTRACT(quarter from INTERVAL)
Previous Message Jonathan Barnhart 2009-03-27 21:37:15 BUG #4738: Cannot reconnect to shared memory