From: Josh Berkus <josh@agliodbs.com>
To: lockhart@fourpalms.org
Cc: Karel Zak <zakkr@zf.jcu.cz>
Cc: sqllist <pgsql-sql@postgresql.org>
Subject: Re: No Documentation for to_char(INTERVAL, mask)
Date: Wed, 07 Mar 2001 08:38:25 -0800
Message-ID: <3AA66401.6A00BBEC@agliodbs.com> (raw)
References: <3AA469E9.DCFFC0AE@agliodbs.com>
<20010306091316.B6115@ara.zf.jcu.cz>
<3AA51CD1.8A55F64F@agliodbs.com>
<20010307112335.A6373@ara.zf.jcu.cz>
<3AA6424D.AE3AE0A1@alumni.caltech.edu>
Thomas, Karel,
> I agree with Karel's point that it may be a pain to use a procedural
> language to manipulate a "stringy" interval value. If you use a C
> function instead, you can get access to the internal manipulation
> functions already present, as well as access to system functions to
> manipulate a tm structure.
Ah, but this leaves out two important considerations of my particular
problem:
1. The interval I want to manipulate is limited to a relative handful of
possibilities (it's a billing interval): 1 week, 2 weeks, 2x/Month, 1
month, 2 months, 3 months.
2. I don't do C. And I don't have the budget to hire somebody to di it
in C.
If this was a bigger budget project, I'd simply take Karel's notes and
hire a programmer to create the to_char(Interval) function and thus
contribute to PostgreSQL ... but this project is over budget and behind
schedule already.
I'll take a stab at in in PLPGSQL and post the results.
-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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, lockhart@fourpalms.org, zakkr@zf.jcu.cz
Subject: Re: No Documentation for to_char(INTERVAL, mask)
In-Reply-To: <3AA66401.6A00BBEC@agliodbs.com>
References: <3AA469E9.DCFFC0AE@agliodbs.com> <20010306091316.B6115@ara.zf.jcu.cz> <3AA51CD1.8A55F64F@agliodbs.com> <20010307112335.A6373@ara.zf.jcu.cz> <3AA6424D.AE3AE0A1@alumni.caltech.edu> <3AA66401.6A00BBEC@agliodbs.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