pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disallow negative strides in date_bin() 2+ messages / 1 participants [nested] [flat]
* pgsql: Disallow negative strides in date_bin() @ 2021-07-28 16:12 John Naylor <john.naylor@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: John Naylor @ 2021-07-28 16:12 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.g... 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Disallow negative strides in date_bin() @ 2021-07-28 16:12 John Naylor <john.naylor@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: John Naylor @ 2021-07-28 16:12 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.g... 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-07-28 16:12 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-07-28 16:12 pgsql: Disallow negative strides in date_bin() John Naylor <john.naylor@postgresql.org> 2021-07-28 16:12 pgsql: Disallow negative strides in date_bin() John Naylor <john.naylor@postgresql.org>
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