Add SPI_gettypmod() fucntion

Started by Miguel Angel de Blas Burdaloabout 13 years ago3 messageshackers
Jump to latest
#1Miguel Angel de Blas Burdalo
migueldeblas@gmail.com

Hi hackers,

My name is Miguel Angel de Blas. I'm newbie and it's my first collaborationso I
hope it's correct ;-)

I created a function SPI_gettypmod:

int32 SPI_gettypmod(TupleDesc tupdesc, int fnumber);
Return -1 when type not need type-specific data or error.

ref TODO:

Add SPI_gettypmod() to return a field's typemod from a TupleDesc

- http://archives.postgresql.org/pgsql-hackers/2005-11/msg00250.php

Regards

Attachments:

SPI_gettypmod.patchapplication/octet-stream; name=SPI_gettypmod.patchDownload+85-0
#2Amit Kapila
amit.kapila16@gmail.com
In reply to: Miguel Angel de Blas Burdalo (#1)
Re: Add SPI_gettypmod() fucntion

On Friday, April 12, 2013 4:24 AM Miguel Angel de Blas Burdalo wrote:

Hi hackers,
My name is Miguel Angel de Blas. I'm newbie and it's my first collaboration so I hope it's correct ;-)

I created a function SPI_gettypmod:
int32 SPI_gettypmod(TupleDesc tupdesc, int fnumber);
Return -1 when type not need type-specific data or error.

ref TODO:

Add SPI_gettypmod() to return a field's typemod from a TupleDesc
http://archives.postgresql.org/pgsql-hackers/2005-11/msg00250.php

Mark Wong has already proposed a patch in next Commit Fest for this feature. Please refer below Commit Fest entry:
https://commitfest.postgresql.org/action/patch_view?id=1082

With Regards,
Amit Kapila.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Michael Paquier
michael@paquier.xyz
In reply to: Miguel Angel de Blas Burdalo (#1)
Re: Add SPI_gettypmod() fucntion

On Fri, Apr 12, 2013 at 7:53 AM, Miguel Angel de Blas Burdalo <
migueldeblas@gmail.com> wrote:

Hi hackers,

My name is Miguel Angel de Blas. I'm newbie and it's my first
collaboration so I hope it's correct ;-)

I created a function SPI_gettypmod:

int32 SPI_gettypmod(TupleDesc tupdesc, int fnumber);
Return -1 when type not need type-specific data or error.

Even if you do not implement it, you can help as well in reviewing and
testing the feature!
--
Michael