Re: BUG #14294: Problem in generate series between dates

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christoph Berg <myon(at)debian(dot)org>, Pablo Pumarino Delgado <pablopumarino(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14294: Problem in generate series between dates
Date: 2016-09-01 09:39:26
Message-ID: CAEZATCW_MMOhUYV_yjOm-RZ4wcCfYAwmcUvN=k096Vq57=dqpQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 1 September 2016 at 00:39, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> wrote:
>>>>>> "Dean" == Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> writes:
>
> >> Perhaps adding generate_series(date,date,interval) might work.
>
> Dean> On second thoughts, that would change the return type of some
> Dean> existing queries, which would be problematic.
>
> But as this bug report is showing, those existing queries are at best
> fragile and at worst silently wrong...
>

Hmm, maybe, but since this is timezone-dependent, the existing code
might be perfectly safe in the user's part of the world. I don't
really have a feel for how likely this is to break people's code, but
I think it's something we have to consider.

Regards,
Dean

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-09-01 12:07:09 Re: BUG #14294: Problem in generate series between dates
Previous Message Andrew Gierth 2016-08-31 23:39:09 Re: BUG #14294: Problem in generate series between dates