Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6GA3-00051M-Sn for pgsql-bugs@arkaria.postgresql.org; Sun, 22 Oct 2017 13:19:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e6GA3-0004sL-1q for pgsql-bugs@arkaria.postgresql.org; Sun, 22 Oct 2017 13:19:27 +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 1e6GA1-0004rg-SC for pgsql-bugs@postgresql.org; Sun, 22 Oct 2017 13:19:25 +0000 Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e6G9x-0006jY-Ju for pgsql-bugs@postgresql.org; Sun, 22 Oct 2017 13:19:24 +0000 Received: by mail-yw0-x229.google.com with SMTP id l32so9957461ywh.13 for ; Sun, 22 Oct 2017 06:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=2fIs1khZHsu4zx6mJXwgwKDR9fFoVfw4MSPtQpb7EKA=; b=FxOFeb327YkWkXCB+NVYvgEjzgEkSplP5tsQYZhK8yO09scNLs0T+Y9m/xxSdgtmzT CspKbkPWRYUXL+Ir/HfGlFNOJnRk36zMqii8u95BYaUhwssD6ptMi1WsVgHL8AEcCPeZ 0ofUo8NmYm4/o/vBDyFZvaPyTj1qvwNU7909LLZrAG7kj2b5JSQSQFfMy6OtEiGuZxPK EgIGHeH2JohMz23vQ+Z0aUcpeXf1xhHLXqZyXUtPF32OA9vJHWmuxkKtPq0xg6cWSBJ2 cjc21DU7SRMbBCxiyGOQjfueTxQ7ccWqzjfXMZ81rz0nDtpTLFB/hXZdhiiYegCeGEP8 AIRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=2fIs1khZHsu4zx6mJXwgwKDR9fFoVfw4MSPtQpb7EKA=; b=Jg4MMqDLFzLrHdM6yFHjcUPadwHtoTF2WReCZBvONME82hRb0M0EfqYsPyovM51Ah0 OjXdwsEwYU5yK6mfUW3w6amECKHbwzWoXb2fwmYCts61kXHVxNDfozF7GPF0/1EhFPEL SwOiZ7tB+MTiUI8vxpTd3TOFlSTscU7IFucTV2hxr7EPjceQ3cIXdCskkuBk5t9hYIwW i4+T6It6EXTqwUKN/vemJWiil5AVGeVoGKmhbo1a+pBz8U8SHJlf6Jkk6tcOU+DtE3MV yrler4Fz1qdWk+87NsUuiCMSr5OGYHdaent1sLv4Q9PNeB5i2Mza3bRGWO0Ig8qrTvaS z0gA== X-Gm-Message-State: AMCzsaUQmZVMf0JrikP1pe8Bvb3YV5A95yyGQzxFfamUYBn71BrJFa2c EuCS6vc9NGx+Clsw+RExWW6JqK7VGWQs2m75IhwlQhx27hXIIbnqgyhmE+UsAhxofMF2hO9dVGp VsjIrKFsG5GGOvpPXUHWmO4VlieogfMLTevnfsS/BioU5fu8IT6PCIrj88n3MG2ZF3VcnzvV4S1 nLmEXe3kze X-Google-Smtp-Source: ABhQp+TqHm3B9HBJHc6NHqDmrE1Y4TqDg8lM9lVwh7Np6WoviRpDNcSzyTMJdfwyTSKhtaXRIBvcRQ== X-Received: by 10.37.68.138 with SMTP id r132mr6601942yba.218.1508678359517; Sun, 22 Oct 2017 06:19:19 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id m125sm2515549ywf.42.2017.10.22.06.19.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Oct 2017 06:19:18 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much To: Tom Lane , Michael Paquier Cc: Dmitry Dolgov <9erthalion6@gmail.com>, Marko Tiikkaja , PostgreSQL mailing lists References: <20171011020058.27986.42308@wrigleys.postgresql.org> <18157.1508600622@sss.pgh.pa.us> Message-ID: Date: Sun, 22 Oct 2017 09:19:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <18157.1508600622@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW 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 On 10/21/2017 11:43 AM, Tom Lane wrote: > 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. > > I guess it's not a problem exposing a new function in funcapi.h in the stable branches, since this fix needs to be backpatched to 9.4. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs