Re: Should SPI_gettypeid be extended to support returning the typmod? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Should SPI_gettypeid be extended to support returning the typmod?
Date
Msg-id 2936.1215784795@sss.pgh.pa.us
Whole thread Raw
In response to Should SPI_gettypeid be extended to support returning the typmod?  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> But the SPI api doesn't actually allow callers to get more than the typeid of
> the types in the result tupledesc of SPI_execute_plan:

> SPI_gettypeid(TupleDesc tupdesc, int fnumber)

> Should this function be replaced with one which allows returning a typmod as
> well?

I'm not too excited about it, since there have been no actual field
requests for such a thing.  It's not like callers can't look into the
tupdesc for themselves, anyway ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: CommitFest rules
Next
From: Simon Riggs
Date:
Subject: Re: Auto-explain patch