Commit 9b5797c
committed
Revert "Disallow infinite endpoints in generate_series() for timestamps."
This reverts commit eafdf9d
and its back-branch counterparts. Corey Huinker pointed out that
we'd discussed this exact change back in 2016 and rejected it,
on the grounds that there's at least one usage pattern with LIMIT
where an infinite endpoint can usefully be used. Perhaps that
argument needs to be re-litigated, but there's no time left before
our back-branch releases. To keep our options open, restore the
status quo ante; if we do end up deciding to change things, waiting
one more quarter won't hurt anything.
Rather than just doing a straight revert, I added a new test case
demonstrating the usage with LIMIT. That'll at least remind us of
the issue if we forget again.
Discussion: https://postgr.es/m/3603504.1652068977@sss.pgh.pa.us
Discussion: https://postgr.es/m/CADkLM=dzw0Pvdqp5yWKxMd+VmNkAMhG=4ku7GnCZxebWnzmz3Q@mail.gmail.com1 parent 677a494 commit 9b5797c
File tree
5 files changed
+48
-56
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
5 files changed
+48
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5757 | 5757 | | |
5758 | 5758 | | |
5759 | 5759 | | |
5760 | | - | |
5761 | | - | |
5762 | | - | |
5763 | | - | |
5764 | | - | |
5765 | | - | |
5766 | | - | |
5767 | | - | |
5768 | | - | |
5769 | | - | |
5770 | | - | |
5771 | | - | |
5772 | | - | |
5773 | | - | |
5774 | 5760 | | |
5775 | 5761 | | |
5776 | 5762 | | |
| |||
5851 | 5837 | | |
5852 | 5838 | | |
5853 | 5839 | | |
5854 | | - | |
5855 | | - | |
5856 | | - | |
5857 | | - | |
5858 | | - | |
5859 | | - | |
5860 | | - | |
5861 | | - | |
5862 | | - | |
5863 | | - | |
5864 | | - | |
5865 | | - | |
5866 | | - | |
5867 | | - | |
5868 | 5840 | | |
5869 | 5841 | | |
5870 | 5842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2055 | 2055 | | |
2056 | 2056 | | |
2057 | 2057 | | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2058 | 2077 | | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | 2078 | | |
2068 | 2079 | | |
2069 | 2080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2333 | 2333 | | |
2334 | 2334 | | |
2335 | 2335 | | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
2336 | 2355 | | |
2337 | | - | |
2338 | | - | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
2345 | 2356 | | |
2346 | 2357 | | |
2347 | 2358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
378 | 383 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | 384 | | |
386 | 385 | | |
387 | 386 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
417 | 422 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | 423 | | |
425 | 424 | | |
426 | 425 | | |
| |||
0 commit comments