Re: Feature request: Improve allowed values for generate series

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Eugen Konkov <kes-kes(at)yandex(dot)ru>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Feature request: Improve allowed values for generate series
Date: 2020-11-11 19:17:28
Message-ID: CAKFQuwYEkaLC4UoFKguj6E1SZ-YEGHzsGGyrrxfkDg51SuQwzQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Nov 11, 2020 at 12:12 PM Eugen Konkov <kes-kes(at)yandex(dot)ru> wrote:

>
> > So I feature request to allow zero size step for cases when
> start point is equest to finish
>
> > What do you think?
>
>
>
> hm.... probably with step 0 we always should generate series of one
> value and exit, despite on finish value.
> Because with step 0 we always stay at current position, so there is
> always should be just one value.
>
>
How is this better than writing "VALUES (start date)"?

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergei Kornilov 2020-11-11 19:38:30 Re: Allow some recovery parameters to be changed with reload
Previous Message Laurenz Albe 2020-11-11 19:17:04 Re: Add session statistics to pg_stat_database