forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit29904f5
committed
Revert "Disallow infinite endpoints in generate_series() for timestamps."
This reverts commiteafdf9dand its back-branch counterparts. Corey Huinker pointed out thatwe'd discussed this exact change back in 2016 and rejected it,on the grounds that there's at least one usage pattern with LIMITwhere an infinite endpoint can usefully be used. Perhaps thatargument needs to be re-litigated, but there's no time left beforeour back-branch releases. To keep our options open, restore thestatus quo ante; if we do end up deciding to change things, waitingone more quarter won't hurt anything.Rather than just doing a straight revert, I added a new test casedemonstrating the usage with LIMIT. That'll at least remind us ofthe issue if we forget again.Discussion:https://postgr.es/m/3603504.1652068977@sss.pgh.pa.usDiscussion:https://postgr.es/m/CADkLM=dzw0Pvdqp5yWKxMd+VmNkAMhG=4ku7GnCZxebWnzmz3Q@mail.gmail.com1 parent0abc1a0 commit29904f5
File tree
5 files changed
+48
-56
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
5 files changed
+48
-56
lines changedLines changed: 0 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5778 | 5778 |
| |
5779 | 5779 |
| |
5780 | 5780 |
| |
5781 |
| - | |
5782 |
| - | |
5783 |
| - | |
5784 |
| - | |
5785 |
| - | |
5786 |
| - | |
5787 |
| - | |
5788 |
| - | |
5789 |
| - | |
5790 |
| - | |
5791 |
| - | |
5792 |
| - | |
5793 |
| - | |
5794 |
| - | |
5795 | 5781 |
| |
5796 | 5782 |
| |
5797 | 5783 |
| |
| |||
5872 | 5858 |
| |
5873 | 5859 |
| |
5874 | 5860 |
| |
5875 |
| - | |
5876 |
| - | |
5877 |
| - | |
5878 |
| - | |
5879 |
| - | |
5880 |
| - | |
5881 |
| - | |
5882 |
| - | |
5883 |
| - | |
5884 |
| - | |
5885 |
| - | |
5886 |
| - | |
5887 |
| - | |
5888 |
| - | |
5889 | 5861 |
| |
5890 | 5862 |
| |
5891 | 5863 |
| |
|
Lines changed: 19 additions & 8 deletions
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 |
| |
|
Lines changed: 19 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2398 | 2398 |
| |
2399 | 2399 |
| |
2400 | 2400 |
| |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
2401 | 2420 |
| |
2402 |
| - | |
2403 |
| - | |
2404 |
| - | |
2405 |
| - | |
2406 |
| - | |
2407 |
| - | |
2408 |
| - | |
2409 |
| - | |
2410 | 2421 |
| |
2411 | 2422 |
| |
2412 | 2423 |
| |
|
Lines changed: 5 additions & 6 deletions
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 |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
439 | 444 |
| |
440 |
| - | |
441 |
| - | |
442 |
| - | |
443 |
| - | |
444 |
| - | |
445 |
| - | |
446 | 445 |
| |
447 | 446 |
| |
448 | 447 |
| |
|
0 commit comments
Comments
(0)