| From: | Patrick Handja <patrick(dot)bungama(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Setof RangeType returns |
| Date: | 2020-12-10 01:54:13 |
| Message-ID: | CAOKRWVCoP7RHE+XCDDfMQnzj6VAOsRAd7Vsi4nL1eYTR6UvEwQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)sss(dot)pgh(dot)pa(dot)us> a écrit :
> Patrick Handja <patrick(dot)bungama(at)gmail(dot)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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zhihong Yu | 2020-12-10 02:19:05 | Re: Parallel Inserts in CREATE TABLE AS |
| Previous Message | torikoshia | 2020-12-10 01:48:00 | Re: Get memory contexts of an arbitrary backend process |