Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f75MWH607274 for ; Sun, 5 Aug 2001 18:32:17 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f75MK2S77825 for pgsql-sql@postgresql.org; Sun, 5 Aug 2001 18:20:02 -0400 (EDT) (envelope-from news) From: Allan Engelhardt X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Data type confusion Date: Sun, 05 Aug 2001 23:20:05 +0100 Organization: http://cybaea.com/ Message-ID: <3B6DC695.599C2571@cybaea.com> References: X-NNTP-Posting-Host: engelhardt.demon.co.uk:193.237.12.86 X-Complaints-To: abuse@demon.net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.7 i686) X-Accept-Language: en MIME-Version: 1.0 To: Josh Berkus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 38 To: pgsql-sql@postgresql.org X-Archive-Number: 200108/51 X-Sequence-Number: 4272 Josh Berkus wrote: > This is a multi-part MIME message > > --_===97089====davinci.ethosmedia.com===_ > Content-Type: text/plain; charset="ISO-8859-1" > Content-Transfer-Encoding: 8bit > > Tom, Stephan, > > I'm writing up the date/time FAQ, and I came across some operator > behavior that confuses me: > > If > INTERVAL / INTEGER = INTERVAL > > then why does > INTERVAL / INTERVAL = ERROR? > > Shouldn't > INTERVAL / INTERVAL = INTEGER? > > I'd like to answer this before I finish the FAQ, as it seems > inconsistent behavior. > > -Josh > > Josh, I'm not Tom or Stephan (sorry) but in your scenario what would be the result of, say, dividing '3 months ago' with '6 seconds' in the future? I don't think it makes conceptual sense to divide intervals.... Allan.