pgsql: Prevent a rowtype from being included in itself via a range.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Prevent a rowtype from being included in itself via a range.
Date: 2019-12-23 17:08:56
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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/[email protected]

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/976cb11f6c58b8807455982ae7344b72ea2cd1ab

Modified Files
--------------
src/backend/catalog/heap.c | 9 +++++++++
src/test/regress/expected/rangetypes.out | 3 +++
src/test/regress/sql/rangetypes.sql | 3 +++
3 files changed, 15 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-12-23 17:53:33 pgsql: Disallow partition key expressions that return pseudo-types.
Previous Message Alvaro Herrera 2019-12-23 15:55:48 pgsql: GetPublicationByName: Don't repeat ourselves