From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Add all structured objects passed to pushJsonbValue piecewise. |
Date: | 2015-05-27 00:46:34 |
Message-ID: | 556513EA.2080107@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
On 5/26/15 11:24 AM, Andrew Dunstan wrote:
> Add all structured objects passed to pushJsonbValue piecewise.
>
> Commit 9b74f32cdbff8b9be47fc69164eae552050509ff did this for objects of
> type jbvBinary, but in trying further to simplify some of the new jsonb
> code I discovered that objects of type jbvObject or jbvArray passed as
> WJB_ELEM or WJB_VALUE also caused problems. These too are now added
> component by component.
>
> Backpatch to 9.4.
This causes a compiler warning:
jsonb_util.c: In function 'pushJsonbValue':
jsonb_util.c:535:3: error: passing argument 1 of 'JsonbIteratorInit'
from incompatible pointer type [-Werror]
it = JsonbIteratorInit(jbval);
^
In file included from jsonb_util.c:20:0:
../../../../src/include/utils/jsonb.h:422:23: note: expected 'struct
JsonbContainer *' but argument is of type 'struct JsonbValue *'
extern JsonbIterator *JsonbIteratorInit(JsonbContainer *container);
^
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2015-05-27 01:42:06 | Re: [COMMITTERS] pgsql: Row-Level Security Policies (RLS) |
Previous Message | Stephen Frost | 2015-05-27 00:10:04 | Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension |