diff options
author | John Naylor <john.naylor@postgresql.org> | 2021-07-28 11:22:58 -0400 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2021-07-28 12:10:12 -0400 |
commit | 3ba70d4e152372fd8ab90ed0887ee08d505ef306 (patch) | |
tree | 0a9f052ccd6bf9a23b55442e512c4c5b19e0699c /doc/src | |
parent | ed1884a2fedeffd2e6902451a9d41f4b3f6e859f (diff) | |
download | postgresql-3ba70d4e152372fd8ab90ed0887ee08d505ef306.tar.gz postgresql-3ba70d4e152372fd8ab90ed0887ee08d505ef306.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 741dfbae4a5..c12d03e5832 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10008,12 +10008,8 @@ SELECT date_bin('15 minutes', TIMESTAMP '2020-02-11 15:44:17', TIMESTAMP '2001-0 </para> <para> - Negative intervals are allowed and are treated the same as positive intervals. - </para> - - <para> - The <parameter>stride</parameter> interval cannot contain units of month - or larger. + The <parameter>stride</parameter> interval must be greater than zero and + cannot contain units of month or larger. </para> </sect2> |