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