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 1imTZP-0007D0-PV for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jan 2020 02:17:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imTZM-0001NF-Kp for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jan 2020 02:17:08 +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 1imTZM-0001N6-CE for pgsql-hackers@lists.postgresql.org; Wed, 01 Jan 2020 02:17:08 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1imTZE-0000It-If for pgsql-hackers@postgresql.org; Wed, 01 Jan 2020 02:17:06 +0000 Received: from Davids-MacBook.local (unknown [199.58.187.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 9E2AA54668; Wed, 1 Jan 2020 02:16:56 +0000 (UTC) Subject: Re: backup manifests To: David Fetter , Tels Cc: Robert Haas , Suraj Kharage , Rushabh Lathia , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C References: <20191231174325.GQ32763@fetter.org> From: David Steele Message-ID: <7cb79c9e-8377-b2b5-3fa4-9775e1aca1fe@pgmasters.net> Date: Tue, 31 Dec 2019 19:16:53 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191231174325.GQ32763@fetter.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/31/19 10:43 AM, David Fetter wrote: > On Tue, Dec 31, 2019 at 01:30:01PM +0100, Tels wrote: >> Moin, >> >> sorry for the very late reply. There was a discussion about the specific >> format of the backup manifests, and maybe that was already discussed and I >> just overlooked it: >> >> 1) Why invent your own format, and not just use a machine-readable format >> that already exists? It doesn't have to be full blown XML, or even JSON, >> something simple as YAML would already be better. That way not everyone has >> to write their own parser. Or maybe it is already YAML and just the >> different keywords where under discussion? > > YAML is extremely fragile and error-prone. It's also a superset of > JSON, so I don't understand what you mean by "as simple as." > > -1 from me on YAML -1 from me as well. YAML is easy to write but definitely non-trivial to read. > That said, I agree that there's no reason to come up with a bespoke > format and parser when JSON is already available in every PostgreSQL > installation. Imposing a structure atop that includes a version > number, as you suggest, seems pretty straightforward, and should be > done. +1. I continue to support a format that would be easily readable without writing a lot of code. -- -David david@pgmasters.net