pgsql: Make TupleDescInitBuiltinEntry throw error for unsupported types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make TupleDescInitBuiltinEntry throw error for unsupported types
Date: 2018-12-10 15:38:57
Message-ID: E1gWNe5-0001Fq-L9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make TupleDescInitBuiltinEntry throw error for unsupported types.

Previously, it would just pass back a partially-uninitialized tupdesc,
which doesn't seem like a safe or useful behavior.

Backpatch to v10 where this code came in.

Discussion: https://postgr.es/m/30830.1544384975@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/backend/access/common/tupdesc.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-12-10 15:44:12 pgsql: Doc: remove obsolete reference to recursive expression evaluatio
Previous Message Stephen Frost 2018-12-10 15:14:21 pgsql: Add pg_dump test for empty OP class