| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
| Cc: | "Terry Lee Tucker" <terry(at)chosen-ones(dot)org>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Conversion to 8.3 |
| Date: | 2008-04-05 15:21:47 |
| Message-ID: | 14048.1207408907@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
"Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> writes:
> what type is new.ontime ?? timestamp or interval. I would expect it
> to be an interval. But intervals are either negative or positive, not
> "ago" unless that's something peculiar to 7.4 that I've long since
> forgotten.
No, it's still around:
regression=# select '-1 day'::interval;
interval
----------
-1 days
(1 row)
regression=# set datestyle = postgres;
SET
regression=# select '-1 day'::interval;
interval
-------------
@ 1 day ago
(1 row)
The most bletcherous aspect of Terry's original coding is that it fails
entirely, and silently, if the DateStyle setting isn't what it's
assuming...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Anton Melser | 2008-04-05 15:43:36 | Re: database 1.2G, pg_dump 73M?! |
| Previous Message | D'Arcy J.M. Cain | 2008-04-05 15:18:07 | Re: modules |