]> 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)
commit4af2531d03930c1fa1aa7ffc9b7cda9e23d7c03a
tree9dba66793d27a4e76b91f0841a4e807ae208a461
parent37ae8640ed9b96267da0b05fd09f60bdffe58482
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