Re: Setof RangeType returns

Поиск
Список
Период
Сортировка
От Patrick Handja
Тема Re: Setof RangeType returns
Дата
Msg-id CAOKRWVCoP7RHE+XCDDfMQnzj6VAOsRAd7Vsi4nL1eYTR6UvEwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Setof RangeType returns  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

After some days, I finally found what I was looking for.
Actually this worked:

> Oid rngtypid = get_fn_expr_rettype(fcinfo->flinfo);
....
> typcache = range_get_typcache(fcinfo, rngtypid);

Thanks for the help.

Andjasubu Bungama, Patrick 



Le mar. 1 déc. 2020 à 17:39, Tom Lane <tgl@sss.pgh.pa.us> a écrit :
Patrick Handja <patrick.bungama@gmail.com> writes:
> In my case, I do not have a range as an argument, I am receiving 2 int,
> which I am using to create a range. How can I initialize typcache in this
> case?

You should be passing down the pointer from the outer function, which
does have it at hand, no?

                        regards, tom lane

В списке pgsql-hackers по дате отправления:

Предыдущее
От: torikoshia
Дата:
Сообщение: Re: Get memory contexts of an arbitrary backend process
Следующее
От: Zhihong Yu
Дата:
Сообщение: Re: Parallel Inserts in CREATE TABLE AS