From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Torsten Zuehlsdorff <mailinglists(at)toco-domains(dot)de> |
Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Add generate_series(date, date) and generate_series(date, date, integer) |
Date: | 2016-01-26 12:53:26 |
Message-ID: | CAB7nPqTGLZJH4P+RMP_xJGEwWXSGvUL7crUZEK+tOkMZeq0tKA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jan 26, 2016 at 7:00 PM, Torsten Zuehlsdorff
<mailinglists(at)toco-domains(dot)de> wrote:
>
> On 26.01.2016 07:52, Simon Riggs wrote:
>
>>> Imagine for example a script that in some rare cases passes happens to
>>> pass infinity into generate_series() - in that case I'd much rather error
>>> out than wait till the end of the universe.
>>>
>>> So +1 from me to checking for infinity.
>>>
>>
>> +1
>>
>> ERROR infinite result sets are not supported, yet
>
>
> Maybe we should skip the "yet". Or do we really plan to support them in
> (infinite) future? ;)
>
> +1 from me to check infinity also.
Something like the patch attached would be fine? This wins a backpatch
because the query continuously running eats memory, no?
--
Michael
Attachment | Content-Type | Size |
---|---|---|
series-timestamp-inf-v1.patch | text/x-patch | 3.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2016-01-26 12:53:33 | Re: pgbench - allow backslash-continuations in custom scripts |
Previous Message | Masahiko Sawada | 2016-01-26 12:52:30 | Improve tab completion for REFRESH MATERIALIZED VIEW |