From: Josh Berkus <josh@agliodbs.com>
To: Allan Engelhardt <allane@cybaea.com>
To: Josh Berkus <josh@agliodbs.com>
To: pgsql-sql@postgresql.org
Subject: Re: Re: Data type confusion
Date: Mon, 06 Aug 2001 13:55:43 -0700
Message-ID: <web-97584@davinci.ethosmedia.com> (raw)
In-Reply-To: <3B6EFA63.FA7326EB@cybaea.com>
Allan,
> I see now what you are trying to do. It sort of makes sense, but I'm
> still really reluctant to give (semantic or otherwise) meaning to
> "yesterday divided by tomorrow" .....
I don't agree. Consider, for example, this statement:
'30 weeks ago'::INTERVAL / '2 weeks'::INTERVAL = -15
Just as
-30 / 2 = -15
To phrase the equation above: "How many two week periods is thirty
weeks ago? Minus fifteen, or fifteen ago."
This makes perfect sense to me.
> It seems to me that such a function would be more generally useful
> than the division of intervals. What you really want to do is not to
> divide intervals, but to express them in different time units. Or am
> I missing something (again)?
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: josh@agliodbs.com, allane@cybaea.com
Subject: Re: Re: Data type confusion
In-Reply-To: <web-97584@davinci.ethosmedia.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