Re: Extract numeric filed in JSONB more effectively - Mailing list pgsql-hackers

From jian he
Subject Re: Extract numeric filed in JSONB more effectively
Date
Msg-id CACJufxH0jZF1rRDq+=44X=x3+LAuutdCZ3WwA+mx8R3LOgiahg@mail.gmail.com
Whole thread Raw
In response to Re: Extract numeric filed in JSONB more effectively  (Andy Fan <zhihui.fan1213@gmail.com>)
Responses Re: Extract numeric filed in JSONB more effectively
List pgsql-hackers
Hi.

+Datum
+jsonb_object_field_type(PG_FUNCTION_ARGS)
+{
+ Jsonb    *jb = PG_GETARG_JSONB_P(0);
+ text    *key = PG_GETARG_TEXT_PP(1);
+ Oid targetOid = PG_GETARG_OID(2);

compared with jsonb_numeric. I am wondering if you need a free *jb.
elog(INFO,"jb=%p arg pointer=%p ", jb, PG_GETARG_POINTER(0));
says there two are not the same.



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Minor configure/meson cleanup
Next
From: "Drouvot, Bertrand"
Date:
Subject: Re: Synchronizing slots from primary to standby