Re: Add generate_series(date,date) and generate_series(date,date,integer)

From: Christoph Berg <myon(at)debian(dot)org>
To: David Fetter <david(at)fetter(dot)org>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Torsten Zuehlsdorff <mailinglists(at)toco-domains(dot)de>, 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-02-21 21:42:20
Message-ID: 20160221214220.GA15621@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Re: David Fetter 2016-01-26 <20160126180011(dot)GA16903(at)fetter(dot)org>
> +1 for back-patching. There's literally no case where an infinite
> input could be correct as the start or end of an interval for
> generate_series.

select * from generate_series(now(), 'infinity', '1 day') limit 10;

... seems pretty legit to me. If limit pushdown into SRFs happened to
work some day, it'd be a pity if the above query raised an error.

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2016-02-21 21:49:35 Re: checkpointer continuous flushing - V18
Previous Message Tom Lane 2016-02-21 21:26:06 Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.