]> granicus.if.org Git - postgresql/commit
Make TupleDescInitBuiltinEntry throw error for unsupported types.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Dec 2018 15:38:49 +0000 (10:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Dec 2018 15:38:49 +0000 (10:38 -0500)
commit9eaba23c414d9da1e767e1af0a80cb687dc358e2
treef7e543b1c70df94286d3aa4b8bfc6ec5ac08ef6e
parent54f24ab76dedb69c03fe4b271c7f53a351637df3
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