Re: pg_generate_sequence and info_schema patch (Was: SELECT

From: Joe Conway <mail(at)joeconway(dot)com>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: "pgsql-patches(at)postgresql(dot)org" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pg_generate_sequence and info_schema patch (Was: SELECT
Date: 2004-02-05 04:57:37
Message-ID: 4021CD41.5040901@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Gaetano Mendola wrote:
> select * from generate_series(5,1,-2);

> I understood on your past posts that instead this result
> was obtained with:
>
> select * from generate_series(5,1,2);
> ~ generate_series
> - -----------------
> ~ 5
> ~ 3
> ~ 1
> (3 rows)

Tom objected to the original, so what you now see is what was agreed upon.

> ~ ( step can not be 0 )
>
> if ( start < end ) and ( step < 0 ) the result set is empty
> if ( start > end ) and ( step > 0 ) the result set is empty

Reread the thread. That was the conclusion and what the proposed
documentation is at least trying to convey. As Tom pointed out earlier,
I need to add a bit more detail to it.

Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2004-02-05 05:08:36 Re: Predictive or scoring solution for PostgreSQL ?
Previous Message Mike Mascari 2004-02-05 03:31:28 Re: Predictive or scoring solution for PostgreSQL ?

Browse pgsql-patches by date

  From Date Subject
Next Message Claudio Natoli 2004-02-05 08:08:50 win32 inode fix
Previous Message Claudio Natoli 2004-02-05 02:34:23 Re: [PATCHES] win32 signals, part 4