pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent a rowtype from being included in itself via a range.
Date: Mon, 23 Dec 2019 17:08:56 +0000
Message-ID: <E1ijRCS-0004Wk-90@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fc7695891d357a54f0258142de85f88520796b9b

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(+)



view thread (11+ messages)  latest in thread

Message-ID: <E1ijRCS-0004Wk-90@gemulon.postgresql.org>
Permalink:  ../E1ijRCS-0004Wk-90@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ijRCS-0004Wk-90@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Prevent a rowtype from being included in itself via a range.
  In-Reply-To: <E1ijRCS-0004Wk-90@gemulon.postgresql.org>
  References: <E1ijRCS-0004Wk-90@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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