Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Xft-0000Ub-4b for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Oct 2017 13:49:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e5Xfs-0001Pj-Ak for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Oct 2017 13:49:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e5Xfr-0001PH-GC for pgsql-bugs@postgresql.org; Fri, 20 Oct 2017 13:49:19 +0000 Received: from mail-yw0-x22f.google.com ([2607:f8b0:4002:c05::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e5Xfo-0006vB-Cu for pgsql-bugs@postgresql.org; Fri, 20 Oct 2017 13:49:18 +0000 Received: by mail-yw0-x22f.google.com with SMTP id w5so6395472ywg.11 for ; Fri, 20 Oct 2017 06:49:16 -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=zM/hoGyOojjUgSTx0+Vl9yW6Jo5iAg14/OjZgY3gAXM=; b=OqMNM2LnxfNWGqjLGbjSLoptvf+zOnEvRN1pbDxbr5ntcV8OYagbfx0+C5qvOZ+8Yw 1LYvqihDJLBSdVnPaHKxybNyQmBKMTn4mqk9PvbISAEh+ZJt7EqW5FHjQQQ+AhGhnku2 bUcjwxut/YyuTRz8DP/kk0DZjeMPYpxETRZpi7vTzBdp4GEMbBPaOwRK5sdVpOlwmRdT FITIljvnRl3ZMSrTYDkNo0mDzRf6QPRLOxv6k52dCl/kdqMw3uGrwW4nKn/1Zc09KYD6 yZtm2zcfCexeenNuEPMUqAAXPEcEvyM43ge2WZ5tj2fIKxJsKVj7FpOBQ0atWJpzV4Ej F5tw== 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=zM/hoGyOojjUgSTx0+Vl9yW6Jo5iAg14/OjZgY3gAXM=; b=k2dj6wxjKLNLfHx9+9vrZLSazljyKt/4RHN7Ool/o5oXpE52+FYqUejifNFjj1cUSF y4tKhyYSnIyXkIhihhtoECz3WJ0eR8EUkgJMmx2j2UnJCUDhMftwX2RKXnIjpt6Ct5Fq udGXzGx7lG0GwOo5kNQfcwBm2NLsoNOG751ZZXXvVGfUwGhH3ZTpNRm6f02334O3wp1M Kl8z75K8KNapsZAL3EYlTPjkEIfvThnTK8EwcCr1N5h+PgfIcum5YQ5qhKKo/0rUnq7o /2ss+nKXDe929Ua0ibF9qAZGIXlHwLSgPTYeL33QcEuWwK0bcgnFE0P9T/gkX3iATH6u Gmmg== X-Gm-Message-State: AMCzsaUw3jGiguGQCVe4j1reUaeQSJcaOIWiQrk7labmdZk3Cs445Qh+ d5XD1BG7AdIu3Ay+0mOOAZqPt+SYmyF8PGxC0Av9xCaYJzOnIZAUdqhA4/3aCqR81Vi0PGDl55q 0kbcpt494+ONDe/zaM9ZenUZ2CzZIJ8+XgjXx/zsfGltzaTOV0yjUvyOtX1QFkEpfWvg1foKmcF 80xRsPaLDR X-Google-Smtp-Source: ABhQp+RdMXOeN4FU//Cy/cn+V4aivYg9gi5zKhxUvJCwqmAr9szDiyQ5pFM3GQkBQvJD/uLh0X/SxQ== X-Received: by 10.37.86.214 with SMTP id k205mr1002263ybb.494.1508507355331; Fri, 20 Oct 2017 06:49:15 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id u123sm442080ywf.17.2017.10.20.06.49.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Oct 2017 06:49:14 -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: Michael Paquier Cc: Dmitry Dolgov <9erthalion6@gmail.com>, Marko Tiikkaja , PostgreSQL mailing lists References: <20171011020058.27986.42308@wrigleys.postgresql.org> <76ff5ede-99a7-536b-4c26-0db0748ea6e1@2ndQuadrant.com> Message-ID: Date: Fri, 20 Oct 2017 09:49:13 -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: 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/19/2017 11:25 AM, Michael Paquier wrote: > On Thu, Oct 19, 2017 at 10:13 PM, Andrew Dunstan > wrote: >> >> On 10/18/2017 10:07 PM, Michael Paquier wrote: >>> Please see the attached patch which considers all the discussion done, >>> which shapes the code in the way I see most suited for HEAD and >>> back-branches. >> >> Patch doesn't apply against HEAD. >> >> Also, don't we need more tests? > Oops. Sorry about that. v3 is incorrect, I messed up the origin commit > for the diffs generated. Here you go as attached. Looks good. Do you want to produce patches for the back branches also? this applies to REL_10 but not earlier. If not I'll work on it this weekend. 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