| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Disallow infinite endpoints in generate_series() for timestamps. |
| Date: | 2022-04-20 22:08:37 |
| Message-ID: | E1nhIV3-000KSy-11@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Disallow infinite endpoints in generate_series() for timestamps.
Such cases will lead to infinite loops, so they're of no practical
value. The numeric variant of generate_series() already threw error
for this, so borrow its message wording.
Per report from Richard Wesley. Back-patch to all supported branches.
Discussion: https://postgr.es/m/91B44E7B-68D5-448F-95C8-B4B3B0F5DEAF@duckdblabs.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a1e4782a0bca3f19f05042c6f05675dbf4fcacc7
Modified Files
--------------
src/backend/utils/adt/timestamp.c | 28 ++++++++++++++++++
src/test/regress/expected/timestamp.out | 49 +++++++++++++++++++++++++++++++
src/test/regress/expected/timestamptz.out | 49 +++++++++++++++++++++++++++++++
src/test/regress/sql/timestamp.sql | 15 ++++++++++
src/test/regress/sql/timestamptz.sql | 15 ++++++++++
5 files changed, 156 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Geoghegan | 2022-04-21 00:18:02 | pgsql: Fix CLUSTER tuplesorts on abbreviated expressions. |
| Previous Message | Robert Haas | 2022-04-20 15:52:12 | pgsql: Allow db.schema.table patterns, but complain about random garbag |