Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4W6V-00045R-Tt for pgsql-admin@arkaria.postgresql.org; Tue, 26 Jan 2021 21:42:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4W6U-0002lU-RH for pgsql-admin@arkaria.postgresql.org; Tue, 26 Jan 2021 21:42:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4W6U-0002lN-JZ for pgsql-admin@lists.postgresql.org; Tue, 26 Jan 2021 21:42:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4W6S-0001Cw-Jj for pgsql-admin@postgresql.org; Tue, 26 Jan 2021 21:42:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10QLgJAn2338156; Tue, 26 Jan 2021 16:42:19 -0500 From: Tom Lane To: Wells Oliver cc: Alvaro Herrera , pgsql-admin Subject: Re: json_build_object, numeric types, and function limits on 100 arguments In-reply-to: References: <20210126135238.GA20826@alvherre.pgsql> Comments: In-reply-to Wells Oliver message dated "Tue, 26 Jan 2021 11:10:32 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2338154.1611697339.1@sss.pgh.pa.us> Date: Tue, 26 Jan 2021 16:42:19 -0500 Message-ID: <2338155.1611697339@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Wells Oliver writes: > Yeah, thanks, I thought about that: concatenating a few different objects > to make a bigger object. Seemed silly, but if there's not a cleaner > solution, it does work. A more SQL-ish way to deal with this might be to use jsonb_agg() or jsonb_object_agg(). regards, tom lane