From: | Mike Mascari <mascarm(at)mascari(dot)com> |
---|---|
To: | PostgreSQL-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Oddity with literal intervals |
Date: | 2004-03-18 17:24:18 |
Message-ID: | 4059DB42.8070605@mascari.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Here's something odd I stumbled upon:
[estore(at)lexus] select now() + '1 day';
?column?
-------------------------------
2004-03-19 12:19:44.997344-05
(1 row)
[estore(at)lexus] select now() - '1 day';
ERROR: invalid input syntax for type timestamp with time zone: "1 day"
[estore(at)lexus] select now() + '-1 day';
?column?
-------------------------------
2004-03-17 12:20:56.287847-05
(1 row)
[estore(at)lexus] select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
3.2 20020903 (Red Hat Linux 8.0 3.2-7)
(1 row)
It seems odd...
Mike Mascari
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2004-03-18 17:44:40 | Re: Huge number of raws |
Previous Message | Bruce Momjian | 2004-03-18 16:48:20 | Re: Case insensitive ORDER BY |