Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5vwM-0002ml-2F for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Oct 2017 15:43:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e5vwK-0000OF-U5 for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Oct 2017 15:43:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e5vwK-0000Nr-ER for pgsql-bugs@postgresql.org; Sat, 21 Oct 2017 15:43:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e5vwD-0005cd-47 for pgsql-bugs@postgresql.org; Sat, 21 Oct 2017 15:43:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9LFhgrT018158; Sat, 21 Oct 2017 11:43:42 -0400 From: Tom Lane To: Michael Paquier cc: Andrew Dunstan , Dmitry Dolgov <9erthalion6@gmail.com>, Marko Tiikkaja , PostgreSQL mailing lists Subject: Re: BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much In-reply-to: References: <20171011020058.27986.42308@wrigleys.postgresql.org> <76ff5ede-99a7-536b-4c26-0db0748ea6e1@2ndQuadrant.com> ! Comments: In-reply-to Michael Paquier message dated "Sat, 21 Oct 2017 12:40:39 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18156.1508600622.1@sss.pgh.pa.us> Date: Sat, 21 Oct 2017 11:43:42 -0400 Message-ID: <18157.1508600622@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier writes: > Here you go, down to 9.4 where things apply. The same patch can be > applied for HEAD/10, 9.5/9.6 and 9.4. The 9.4 version just needs to > have the portion for json as the jsonb functions have been added in > 9.5, and the json functions are new as of 9.4. It doesn't seem very nice to have two identical(?) copies of extract_variadic_args, especially since the same functionality might be of use elsewhere. I'm almost inclined to say that that should go in funcapi.c/.h. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs