Make TupleDescInitBuiltinEntry throw error for unsupported types.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a628e0c5b484eed450093258440cf858bcdb0555
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-12-10T15:38:49Z
Releases: 11.2
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

Files

PathChange+/−
src/backend/access/common/tupdesc.c modified +3 −0

Discussion