Re: Data type confusion - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Data type confusion
Date
Msg-id web-97110@davinci.ethosmedia.com
Whole thread Raw
In response to Re: Data type confusion  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom,

> > then why does
> > INTERVAL / INTERVAL = ERROR?
>
> Because no one got around to creating an INTERVAL / INTERVAL
> operator.
> There are plenty of such gaps in our operator set...

Bummer.  If I could "C" then maybe I'd do something about it.

>
> > Shouldn't
> > INTERVAL / INTERVAL = INTEGER?
>
> I'd think the output should be FLOAT8, myself, since the result
> could be fractional.
>
> Anyway, the generic response to such questions is "feel free to
> code it up and submit a patch".

Sorry.  :( I'm stricly a "high-level user".

I can, however, document it so that others won't pester you for
questions about why it doesn't work.

-Josh


______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco

Attachment

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Data type confusion
Next
From: Tom Lane
Date:
Subject: Re: Re: Data type confusion