pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Allan Engelhardt <allane@cybaea.com>
To: Josh Berkus <josh@agliodbs.com>
Subject: Re: Data type confusion
Date: Sun, 05 Aug 2001 23:20:05 +0100
Message-ID: <3B6DC695.599C2571@cybaea.com> (raw)
References: <web-97089@davinci.ethosmedia.com>

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.




view thread (19+ messages)  latest in thread

Message-ID: <3B6DC695.599C2571@cybaea.com>
Permalink:  ../3B6DC695.599C2571@cybaea.com/
Also on:    postgresql.org/message-id/3B6DC695.599C2571@cybaea.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: allane@cybaea.com, josh@agliodbs.com
  Subject: Re: Data type confusion
  In-Reply-To: <3B6DC695.599C2571@cybaea.com>

* 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