Get One item from an array.. - Mailing list pgsql-general

From Cristian Prieto
Subject Get One item from an array..
Date
Msg-id 009701c5e3dc$17c51770$6500a8c0@gt.ClickDiario.local
Whole thread Raw
List pgsql-general
Hi! I have a little trouble with a SP written in C language, I have a
function which get an array as parameter, I know I could get the array using
ArrayType *elements = PG_GETARG_ARRAY_P(n) but what about if I only want to
get just the N element from the array? For example the 3 element of this
array, I haven't check a function named Datum *item = ARR_GETITEM(n), is
there any similar function or a simple way to get it?

Thank you a lot!!! I'm a really newbie in SPs written in C language.


pgsql-general by date:

Previous
From: Will Wright
Date:
Subject: Re: Programmatic method to determine currently installed Windows PostrgreSQL version
Next
From: Ned Lilly
Date:
Subject: CA spins off Ingres to a new company