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: | E1m8mAw-0005Wt-Nn@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | 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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3ba70d4e152372fd8ab90ed0887ee08d505ef306
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 |