From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
---|---|
To: | Patrick Handja <patrick(dot)bungama(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Setof RangeType returns |
Date: | 2020-11-27 09:01:40 |
Message-ID: | 1b469b07-eede-38d8-3876-8d98ed077ddd@iki.fi |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2020-11-27 09:04:44 | Re: Add table access method as an option to pgbench |
Previous Message | Michael Paquier | 2020-11-27 08:54:56 | Re: Improving spin-lock implementation on ARM. |