Disallow negative strides in date_bin()

John Naylor <john.naylor@postgresql.org>

Commit: 3ba70d4e152372fd8ab90ed0887ee08d505ef306
Author: John Naylor <john.naylor@postgresql.org>
Date: 2021-07-28T16:10:12Z
Releases: 15.0
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

Files

Documentation touched

Discussion