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 1m10K0-0007dW-Fx for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jul 2021 05:42:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m10Jz-00038i-Dz for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jul 2021 05:42:07 +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 1m10Jz-00038a-6Q for pgsql-hackers@lists.postgresql.org; Wed, 07 Jul 2021 05:42:07 +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 1m10Jv-0006ps-Ux for pgsql-hackers@postgresql.org; Wed, 07 Jul 2021 05:42:06 +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 1675g0Fd1805881; Wed, 7 Jul 2021 01:42:00 -0400 From: Tom Lane To: Michael Paquier cc: Jacob Champion , "daniel@yesql.se" , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Make jsonapi usable from libpq In-reply-to: References: <497374.1624992620@sss.pgh.pa.us> <499672.1624995269@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 07 Jul 2021 14:36:14 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1805879.1625636520.1@sss.pgh.pa.us> Date: Wed, 07 Jul 2021 01:42:00 -0400 Message-ID: <1805880.1625636520@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > It seems to me that this does not address yet the problems with the > palloc/pstrdup in jsonapi.c though, which would need to rely on > malloc() if we finish to use this code in libpq. I am not sure yet > that we have any need to do that yet as we may finish by not using > OAUTH as SASL mechanism at the end in core. So perhaps it would be > better to just give up on this thread for now? Yeah, I think there's nothing to do here unless we decide that we have to have JSON-parsing ability inside libpq ... which is a situation I think we should try hard to avoid. regards, tom lane