pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix alignment in multirange_get_range() function
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix alignment in multirange_get_range() function
@ 2021-12-13 14:27  Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2021-12-13 14:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix alignment in multirange_get_range() function

The multirange_get_range() function fails when two boundaries of the same
range have different alignments.  Fix that by adding proper pointer alignment.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/17300-dced2d01ddeb1f2f%40postgresql.org
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7615edd1db92b0bf909037480e8d9fcdb1be5f4b

Modified Files
--------------
src/backend/utils/adt/multirangetypes.c       |  3 +++
src/test/regress/expected/multirangetypes.out | 21 +++++++++++++++++----
src/test/regress/expected/rangetypes.out      |  6 ------
src/test/regress/sql/multirangetypes.sql      |  4 +++-
src/test/regress/sql/rangetypes.sql           |  1 -
5 files changed, 23 insertions(+), 12 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix alignment in multirange_get_range() function
@ 2021-12-13 14:27  Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2021-12-13 14:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix alignment in multirange_get_range() function

The multirange_get_range() function fails when two boundaries of the same
range have different alignments.  Fix that by adding proper pointer alignment.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/17300-dced2d01ddeb1f2f%40postgresql.org
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5cc9c8374093ba0e427b3309e10077708c156b6a

Modified Files
--------------
src/backend/utils/adt/multirangetypes.c       |  3 +++
src/test/regress/expected/multirangetypes.out | 21 +++++++++++++++++----
src/test/regress/expected/rangetypes.out      |  6 ------
src/test/regress/sql/multirangetypes.sql      |  4 +++-
src/test/regress/sql/rangetypes.sql           |  1 -
5 files changed, 23 insertions(+), 12 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-12-13 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 14:27 pgsql: Fix alignment in multirange_get_range() function Alexander Korotkov <akorotkov@postgresql.org>
2021-12-13 14:27 pgsql: Fix alignment in multirange_get_range() function Alexander Korotkov <akorotkov@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