Re: Setof RangeType returns

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Setof RangeType returns
Дата
Msg-id 1b469b07-eede-38d8-3876-8d98ed077ddd@iki.fi
обсуждение исходный текст
Ответ на Setof RangeType returns  (Patrick Handja <patrick.bungama@gmail.com>)
Ответы Re: Setof RangeType returns  (Patrick Handja <patrick.bungama@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Improving spin-lock implementation on ARM.
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: Add table access method as an option to pgbench