Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imq6E-000723-3K for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jan 2020 02:20:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imq6B-0002PO-2k for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jan 2020 02:20:31 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1imq6A-0002PH-Q2 for pgsql-hackers@lists.postgresql.org; Thu, 02 Jan 2020 02:20:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1imq63-0002zz-HW for pgsql-hackers@postgresql.org; Thu, 02 Jan 2020 02:20:30 +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 0022KBoO030230; Wed, 1 Jan 2020 21:20:11 -0500 From: Tom Lane To: Robert Haas cc: David Fetter , David Steele , Tels , Suraj Kharage , Rushabh Lathia , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C Subject: Re: backup manifests In-reply-to: References: <20191231174325.GQ32763@fetter.org> <7cb79c9e-8377-b2b5-3fa4-9775e1aca1fe@pgmasters.net> <20200101190917.GR32763@fetter.org> <7437.1577925975@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 01 Jan 2020 20:57:11 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30228.1577931611.1@sss.pgh.pa.us> Date: Wed, 01 Jan 2020 21:20:11 -0500 Message-ID: <30229.1577931611@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > AFAICS, the only options to make that work with JSON are (1) introduce > a new hand-coded JSON parser designed for frontend operation, (2) add > a dependency on an external JSON parser that we can use from frontend > code, or (3) adapt the existing JSON parser used in the backend so > that it can also be used in the frontend. > ... I'd > be willing to do (3) if somebody could explain to me how to solve the > problems with porting that code to work on the frontend side, but the > only suggestion so far as to how to do that is to port memory > contexts, elog/report, and presumably encoding handling to work on the > frontend side. That seems to me to be an unreasonably large lift, Yeah, agreed. The only consideration that'd make that a remotely sane idea is that if somebody did the work, there would be other uses for it. (One that comes to mind immediately is cleaning up ecpg's miserably-maintained fork of the backend datetime code.) But there's no denying that it would be a large amount of work (if it's even feasible), and nobody has stepped up to volunteer. It's not reasonable to hold up this particular feature waiting for that to happen. If a tab-delimited file can handle this requirement, that seems like a sane choice to me. regards, tom lane