Prevent a rowtype from being included in itself via a range.
authorTom Lane <[email protected]>
Mon, 23 Dec 2019 17:08:24 +0000 (12:08 -0500)
committerTom Lane <[email protected]>
Mon, 23 Dec 2019 17:08:24 +0000 (12:08 -0500)
commit0d245d13c643d9ee089ad59fc4673a6b520461b1
tree78da244e4738e4d7f57b24801a391ecf12ac03b0
parent297b9ccff44859f274b7408045a9c91d2bb1c6d1
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