Re: generate_series woes - Mailing list pgsql-general

From Merlin Moncure
Subject Re: generate_series woes
Date
Msg-id b42b73150804160601s4cf90b5at337331d320ac3398@mail.gmail.com
Whole thread Raw
In response to Re: generate_series woes  (Volkan YAZICI <yazicivo@ttmail.com>)
Responses Re: generate_series woes  (Sam Mason <sam@samason.me.uk>)
List pgsql-general
On Wed, Apr 16, 2008 at 8:37 AM, Volkan YAZICI <yazicivo@ttmail.com> wrote:
> hubert depesz lubaczewski <depesz@depesz.com> writes:
>  > i think it would be better off not to limit some functionality for
>  > builtin functions. it would be much nicer to have the ability to hint
>  > planer about rowcount from function *in* the sql.
>  >
>  > something like:
>  >
>  > select i from generate_series(1,10) {hint:10} as i;
>  >
>  > i'm not proposiung syntax. i'm suggesting the functionality.
>
>  I'm strongly declined for such non-SQL compliant solutions. I'd be
>  appreciated if hackers can solve the problem internally, without bugging
>  SQL syntax.

maybe -- just an idle thought -- the 'ROWS' clause of create function
could be expanded to take a simple expression based on the input
parameters.

merlin

pgsql-general by date:

Previous
From: Julio Cesar Sánchez González
Date:
Subject: Re: Master-master replication with PostgreSQL
Next
From: Dimitri Fontaine
Date:
Subject: Re: Master-master replication with PostgreSQL