Re: Add generate_series(date,date) and generate_series(date,date,integer) - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Add generate_series(date,date) and generate_series(date,date,integer)
Date
Msg-id CADkLM=fy6hpCxt1VVuXESzQCpibb75mbGqVmt3asrcwRFah+Gg@mail.gmail.com
Whole thread Raw
In response to Re: Add generate_series(date,date) and generate_series(date,date,integer)  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: Add generate_series(date,date) and generate_series(date,date,integer)  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers

I feel rather uneasy about simply removing the 'infinity' checks. Is there a way to differentiate those two cases, i.e. when the generate_series is called in target list and in the FROM part? If yes, we could do the check only in the FROM part, which is the case that does not work (and consumes arbitrary amounts of memory).


It would be simple enough to remove the infinity test on the "stop" and leave it on the "start". Or yank both. Just waiting for others to agree which checks should remain.


 

pgsql-hackers by date:

Previous
From: Vitaly Burovoy
Date:
Subject: Re: [PATCH] Supporting +-Infinity values by to_timestamp(float8)
Next
From: Robert Haas
Date:
Subject: Re: Optimization for updating foreign tables in Postgres FDW