pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ldm@apartia.ch
Cc: Thomas Lockhart <lockhart@alumni.caltech.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
Date: Sat, 23 Sep 2000 12:46:18 -0400
Message-ID: <1823.969727578@sss.pgh.pa.us> (raw)
In-Reply-To: <20000923174520.A10680@styx>
References: <20000921181036.3514.qmail@web805.mail.yahoo.com>
	<5.0.0.19.2.20000921145244.02438d00@pop>
	<39CA6EA1.5610BD7@ipinc.com>
	<20000923174520.A10680@styx>

Louis-David Mitterrand <cunctator@apartia.ch> writes:
> By the way, is it normal that the "day" word doesn't appear in the interval?

> auction=# select interval(now()::abstime::int4);
>           interval          
> ----------------------------
>  30 years 9 mons 3 15:42:09
> (1 row)

Looks like a bug to me ... Thomas, do you agree?

Curiously, it appears that the interval input converter will accept this
with or without the 'days' keyword included.

			regards, tom lane



view thread (2+ messages)

Message-ID: <1823.969727578@sss.pgh.pa.us>
Permalink:  ../1823.969727578@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1823.969727578@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ldm@apartia.ch, lockhart@alumni.caltech.edu
  Subject: Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
  In-Reply-To: <1823.969727578@sss.pgh.pa.us>
  References: <20000921181036.3514.qmail@web805.mail.yahoo.com> <5.0.0.19.2.20000921145244.02438d00@pop> <39CA6EA1.5610BD7@ipinc.com> <20000923174520.A10680@styx> <1823.969727578@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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