]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Prevent a rowtype from being included in itself via a range.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Dec 2019 17:08:24 +0000 (12:08 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Dec 2019 17:08:24 +0000 (12:08 -0500)
commit354d913f9745c4ce39c891d9a73b0b2535fd9c4c
tree1ee61e2baeae205541a8fd3c77d68d006592f1d5
parentb399d01fd7bb5d3f056e9b65933b9e3d89fb2d45
Prevent a rowtype from being included in itself via a range.

We probably should have thought of this case when ranges were added,
but we didn't.  (It's not the fault of commit eb51af71f, because
ranges didn't exist then.)

It's an old bug, so back-patch to all supported branches.

Discussion: https://postgr.es/m/7782.1577051475@sss.pgh.pa.us
src/backend/catalog/heap.c
src/test/regress/expected/rangetypes.out
src/test/regress/sql/rangetypes.sql