pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feed'13 months ago'::reltime
4+ messages / 4 participants
[nested] [flat]
* '13 months ago'::reltime
@ 2001-05-01 12:36 Albert REINER <areiner@tph.tuwien.ac.at>
0 siblings, 1 reply; 4+ messages in thread
From: Albert REINER @ 2001-05-01 12:36 UTC (permalink / raw)
To: pgsql-sql
Saluton,
I do not quite understand the following:
,----
| albert=> select '13 months ago'::reltime;
| ?column?
| ---------------------
| 1 year 25 00:00 ago
| (1 row)
|
| albert=> select '13 months ago'::interval;
| ?column?
| ------------------------
| 1 year 1 mon 00:00 ago
| (1 row)
|
| albert=> select version();
| version
| --------------------------------------------------------------------
| PostgreSQL 7.0.2 on i586-pc-linux-gnulibc1, compiled by gcc 2.95.1
| (1 row)
`----
Shouldn't 13 months be 1 year and 1 month even for reltime?
Somewhat puzzled,
Albert.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: '13 months ago'::reltime
@ 2001-05-03 18:32 Tom Lane <tgl@sss.pgh.pa.us>
parent: Albert REINER <areiner@tph.tuwien.ac.at>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2001-05-03 18:32 UTC (permalink / raw)
To: Albert REINER <areiner@tph.tuwien.ac.at>; +Cc: pgsql-sql
Type reltime is old and deprecated. Don't use it.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: '13 months ago'::reltime
@ 2001-05-05 06:58 Christopher Sawtell <csawtell@xtra.co.nz>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Sawtell @ 2001-05-05 06:58 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql
On Friday 04 May 2001 06:32, you wrote:
> Type reltime is old and deprecated. Don't use it.
What should we be using instead?
--
Sincerely etc.,
NAME Christopher Sawtell
CELL PHONE 021 257 4451
ICQ UIN 45863470
EMAIL csawtell @ xtra . co . nz
CNOTES ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz
-->> Please refrain from using HTML or WORD attachments in e-mails to me <<--
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: '13 months ago'::reltime
@ 2001-05-05 12:55 Peter Eisentraut <peter_e@gmx.net>
parent: Christopher Sawtell <csawtell@xtra.co.nz>
0 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2001-05-05 12:55 UTC (permalink / raw)
To: Christopher Sawtell <csawtell@xtra.co.nz>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-sql
Christopher Sawtell writes:
> On Friday 04 May 2001 06:32, you wrote:
> > Type reltime is old and deprecated. Don't use it.
>
> What should we be using instead?
interval
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-05-05 12:55 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-01 12:36 '13 months ago'::reltime Albert REINER <areiner@tph.tuwien.ac.at>
2001-05-03 18:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-05-05 06:58 ` Christopher Sawtell <csawtell@xtra.co.nz>
2001-05-05 12:55 ` Peter Eisentraut <peter_e@gmx.net>
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