Re: Why does TupleDescInitBuiltinEntry lack a "default: error" case? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Why does TupleDescInitBuiltinEntry lack a "default: error" case?
Date
Msg-id 20181209200453.szboteannavndez5@alap3.anarazel.de
Whole thread Raw
In response to Why does TupleDescInitBuiltinEntry lack a "default: error" case?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On 2018-12-09 14:49:35 -0500, Tom Lane wrote:
> If the passed-in type OID isn't one of the very short list that
> TupleDescInitBuiltinEntry supports, it will silently hand back
> a broken TupleDesc, rather than throwing an error.  How can
> this possibly be considered good code?

+1

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Why does TupleDescInitBuiltinEntry lack a "default: error" case?
Next
From: Stephen Frost
Date:
Subject: Re: automatically assigning catalog toast oids