Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxPUo-0002J2-69 for pgsql-committers@arkaria.postgresql.org; Wed, 27 May 2015 00:46:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxPUm-0005I5-KR for pgsql-committers@arkaria.postgresql.org; Wed, 27 May 2015 00:46:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxPUa-000515-D9 for pgsql-committers@postgresql.org; Wed, 27 May 2015 00:46:44 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YxPUW-0002UZ-51 for pgsql-committers@postgresql.org; Wed, 27 May 2015 00:46:43 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lmazv-1ZX15j2afL-00aI0V for ; Wed, 27 May 2015 02:46:36 +0200 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id ECBE420B14 for ; Tue, 26 May 2015 20:46:34 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Tue, 26 May 2015 20:46:34 -0400 X-Sasl-enc: zAZfj+4ceRQv4s6TcnNNwtBjbZxurfhoJ5eorswqNFzI 1432687594 Received: from [10.0.0.5] (unknown [67.165.24.246]) by mail.messagingengine.com (Postfix) with ESMTPA id AD9E9C00013; Tue, 26 May 2015 20:46:34 -0400 (EDT) Message-ID: <556513EA.2080107@gmx.net> Date: Tue, 26 May 2015 20:46:34 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andrew Dunstan , pgsql-committers@postgresql.org Subject: Re: pgsql: Add all structured objects passed to pushJsonbValue piecewise. References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:H+TzSrQpnvOlrcaJ03Jg9GTqGASSODeOG/btPBHbgd65buLiNQ7 yLszEq7Vjt7hARowSyE6DjgLut63cGCiuG76Z28Fh6BvWALZhIVlvuCAWBDdfo6DbZkOarB mUMhS2C87odHnZmjwd6kcH5zAKD8v18WxG998tNNSljEPqqMUI8ur/ItnatiCDfh3jqq8t/ bOuUmlJ8Vi9W4j56IaCvA== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org 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); ^ -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers