Make TupleDescInitBuiltinEntry throw error for unsupported types.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Dec 2018 15:38:48 +0000 (10:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Dec 2018 15:38:48 +0000 (10:38 -0500)
commitb7a29695f744c3140350a4f1bb8511e950acc086
tree1cef3b7199398bc34f41ac4a72718cccd28deadc
parenteeeb1dfc87fafe1cf4332c09692779662a95511e
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
src/backend/access/common/tupdesc.c