Re: Procedure for feature requests? - Mailing list pgsql-general

From Tim Landscheidt
Subject Re: Procedure for feature requests?
Date
Msg-id m3ws3d8o2p.fsf@passepartout.tim-landscheidt.de
Whole thread Raw
In response to Procedure for feature requests?  (Tim Landscheidt <tim@tim-landscheidt.de>)
Responses Re: Procedure for feature requests?
List pgsql-general
Sam Mason <sam@samason.me.uk> wrote:

>> suppose I thought that PostgreSQL would benefit greatly from
>> a "generate_series(DATE, DATE[, INT]) RETURNS DATE" function

> 8.4 has a generate_series(timestamp,timestamp,interval) which would seem
> to be a bit more flexible than you want.

Yes, I know :-). But as "generate_series(A, B, C)" can also
be written as "A + generate_series(0, (C - B) / C) * C" (or
something "flexible" like that :-)), a
"generate_series(DATE, DATE)" would inter alia get rid off
the need to cast the result from TIMESTAMP to DATE and to
explicitly specify "'1 day'". Just a small, trivial enhance-
ment for a popular use case :-).

Tim

pgsql-general by date:

Previous
From: Tim Landscheidt
Date:
Subject: Re: Procedure for feature requests?
Next
From: Tom Lane
Date:
Subject: Re: Boolean storage takes up 1 byte?