Re: Initializing JsonbValue from cstring - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Initializing JsonbValue from cstring
Date
Msg-id CAFj8pRCeGL7q_EGTz2=FyQZ2Qrtn1x_76mz3fuR=b7beEug7Wg@mail.gmail.com
Whole thread Raw
In response to Initializing JsonbValue from cstring  (Igor Stassiy <istassiy@gmail.com>)
List pgsql-general
Hi

you can call "input function" - jsonb_in

Jsonb *targetjsonbvar = DatumGetJsonb(DirectFunctionCall1(json_in, CStringGetDatum(cstrvalue)));

Regards

Pavel Stehule



2015-02-13 11:32 GMT+01:00 Igor Stassiy <istassiy@gmail.com>:
Hi,

Is there a way to initialize JsonbValue from cstring from public c api in postgres 9.4? Without the use of functions declared with PG_FUNCTION_ARGS.

pgsql-general by date:

Previous
From: Igor Stassiy
Date:
Subject: Initializing JsonbValue from cstring
Next
From: seb
Date:
Subject: No repo for postgresql 9.4 for raspberry pi 2