Re: Add pg_basetype() function to obtain a DOMAIN base type - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Add pg_basetype() function to obtain a DOMAIN base type
Date
Msg-id 516065.1711821634@sss.pgh.pa.us
Whole thread Raw
In response to Re: Add pg_basetype() function to obtain a DOMAIN base type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> A fairly common solution to that is to return NULL for bad input,
> but in this case we could just have it return the OID unchanged.

After sleeping on it, I concluded that was a bad idea and we'd
be best off returning NULL for invalid type OIDs.  So this is
just about back to Steve's original proposal, except for being
a bit more bulletproof against races with DROP TYPE.
Pushed that way.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Statistics Import and Export
Next
From: Jeff Davis
Date:
Subject: Re: Statistics Import and Export