pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disallow infinite endpoints in generate_series() for timestamps. 6+ messages / 1 participants [nested] [flat]
* pgsql: Disallow infinite endpoints in generate_series() for timestamps. @ 2022-04-20 22:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2022-04-20 22:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Disallow infinite endpoints in generate_series() for timestamps. @ 2022-04-20 22:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2022-04-20 22:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e7adbd282dbf9bd53f9bafc1fbb866cbe546af52 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Disallow infinite endpoints in generate_series() for timestamps. @ 2022-04-20 22:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2022-04-20 22:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e346329470081f5919e83b1acb2d0f2442c1fc3d 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Disallow infinite endpoints in generate_series() for timestamps. @ 2022-04-20 22:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2022-04-20 22:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/33fe55c06b83ea428429f5d522e474fbbe4ab655 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Disallow infinite endpoints in generate_series() for timestamps. @ 2022-04-20 22:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2022-04-20 22:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/eafdf9de06e9b60168f5e47cedcfceecdc6d4b5f 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Disallow infinite endpoints in generate_series() for timestamps. @ 2022-04-20 22:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2022-04-20 22:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8275ba773dfe3168115bb3d32728111d9c4becb6 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2022-04-20 22:08 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-04-20 22:08 pgsql: Disallow infinite endpoints in generate_series() for timestamps. Tom Lane <tgl@sss.pgh.pa.us> 2022-04-20 22:08 pgsql: Disallow infinite endpoints in generate_series() for timestamps. Tom Lane <tgl@sss.pgh.pa.us> 2022-04-20 22:08 pgsql: Disallow infinite endpoints in generate_series() for timestamps. Tom Lane <tgl@sss.pgh.pa.us> 2022-04-20 22:08 pgsql: Disallow infinite endpoints in generate_series() for timestamps. Tom Lane <tgl@sss.pgh.pa.us> 2022-04-20 22:08 pgsql: Disallow infinite endpoints in generate_series() for timestamps. Tom Lane <tgl@sss.pgh.pa.us> 2022-04-20 22:08 pgsql: Disallow infinite endpoints in generate_series() for timestamps. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox