| From: | John Naylor <john(dot)naylor(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Disallow negative strides in date_bin() |
| Date: | 2021-07-28 16:12:54 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Disallow negative strides in date_bin()
It's not clear what the semantics of negative strides would be, so throw
an error instead.
Per report from Bauyrzhan Sakhariyev
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAKpL73vZmLuFVuwF26FJ%2BNk11PVHhAnQRoREFcA03x7znRoFvA%40mail.gmail.com
Backpatch to v14
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/fc0d9b8c224ff6b84113cefdca1ba9dde879d863
Modified Files
--------------
doc/src/sgml/func.sgml | 8 ++------
src/backend/utils/adt/timestamp.c | 8 ++++----
src/test/regress/expected/timestamp.out | 5 ++++-
src/test/regress/expected/timestamptz.out | 5 ++++-
src/test/regress/sql/timestamp.sql | 3 +++
src/test/regress/sql/timestamptz.sql | 3 +++
6 files changed, 20 insertions(+), 12 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2021-07-28 16:37:08 | pgsql: Update minimum recovery point on truncation during WAL replay of |
| Previous Message | David Rowley | 2021-07-28 11:44:02 | pgsql: Use the AddFile function consistently in MSVC build scripts |