From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Allan Engelhardt <allane@cybaea.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: Data type confusion
Date: Mon, 06 Aug 2001 15:21:22 -0700
Message-ID: <web-97664@davinci.ethosmedia.com> (raw)
In-Reply-To: <24865.997136070@sss.pgh.pa.us>
Tom,
> > Hmmm ... does this mean that I couldn't divide '1 year' by '1
> week'?
>
> That's exactly what it says.
If that's the case, we'd need to create some sort of function to specify
the time unit to output timestamp operation into:
to_weeks(current_timestamp - hire_date) / '2 weeks'
... otherwise division and multiplication operators for time values
don't do us much good, as we'd be forced to integer-ize all intervals
before we can perform any operations on them at all.
-Josh Berkus
______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
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, tgl@sss.pgh.pa.us, allane@cybaea.com
Subject: Re: Re: Data type confusion
In-Reply-To: <web-97664@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