Re: Should SPI_gettypeid be extended to support returning the typmod?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: Postgres <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Should SPI_gettypeid be extended to support returning the typmod?
Date: 2008-07-11 13:59:55
Message-ID: 2936.1215784795@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-07-11 14:38:10 Re: Auto-explain patch
Previous Message Simon Riggs 2008-07-11 11:10:21 Re: CommitFest rules