Re: Setof RangeType returns - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Setof RangeType returns
Date
Msg-id 1b469b07-eede-38d8-3876-8d98ed077ddd@iki.fi
Whole thread Raw
In response to Setof RangeType returns  (Patrick Handja <patrick.bungama@gmail.com>)
Responses Re: Setof RangeType returns  (Patrick Handja <patrick.bungama@gmail.com>)
List pgsql-hackers
On 26/11/2020 23:28, Patrick Handja wrote:
> Hello,
> 
> I am currently working on Library with some specific operators to 
> manipulate RangeType in PostGreSQL. I would like to know if it is 
> possible to return a setof rangetype elements in Postresql in C-Language 
> function using the suggestion like specified here: 
> https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-C-RETURN-SET 
> <https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-C-RETURN-SET>. 
> I have been trying this for days. If what I am trying to do is 
> impossible, is there any way I can use to have a RangeType set return?

Yes, it is possible.

I bet there's just a silly little bug or misunderstanding in your code. 
This stuff can be fiddly. Feel free to post what you have here, and I'm 
sure someone will point out where the problem is very quickly.

- Heikki



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Improving spin-lock implementation on ARM.
Next
From: Fabien COELHO
Date:
Subject: Re: Add table access method as an option to pgbench