How are jsonb_path_query SRFs $.datetime() defined ?

2023-09-25 Thread Markur Sens
Hi, In the regression test I see tests the one below [1], but generally, jsonb_path_query is a SRF, and the definition in pg_proc.dat has it as such [0], looking at the implementation it doesn’t look like it calls jsonb_query_first behind the scenes (say if it detects it’s being called in SELE

C function to return double precision[][]

2023-08-21 Thread Markur Sens
Is there any piece of code I could see how to achieve $subject ? I haven’t found anything in the standard library or contrib modules. I’m trying to build ArrayType ** of sorts and return a Datum of those but I can’t seem to manage memory correctly.

Re: pg_crc32c_armv8.c:35:9: error: implicit declaration of function '__crc32cb' is invalid in C99

2023-02-20 Thread Markur Sens
> On 20 Feb 2023, at 5:47 PM, Tom Lane wrote: > > Markur Sens mailto:markurs...@gmail.com>> writes: >> I suddenly (?, IIRC a few days ago this worked fine) started getting the >> following error while trying to following while building from source on >> Ap

pg_crc32c_armv8.c:35:9: error: implicit declaration of function '__crc32cb' is invalid in C99

2023-02-20 Thread Markur Sens
I suddenly (?, IIRC a few days ago this worked fine) started getting the following error while trying to following while building from source on Apple M1 This is on REL_13_9 but happens to all other releases too. In file included from pg_crc32c_armv8.c:17: /Library/Developer/CommandLineTools/usr