[HACKERS] Should SPI_gettypeid be extended to support returning the typmod?

2008-07-11 Thread Gregory Stark
In March of last year Tom fixed up a lot of places to reduce the places where we lose typmod info including Const structures: revision 1.128 date: 2007-03-17 00:11:05 +; author: tgl; state: Exp; lines: +7 -6; Fix up the remaining places where the expression node structure would lose

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

2008-07-11 Thread Tom Lane
Gregory Stark [EMAIL PROTECTED] 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