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 1imLYN-000256-Kd for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Dec 2019 17:43:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imLYL-0002KZ-7z for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Dec 2019 17:43:33 +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 1imLYK-0002KS-I6 for pgsql-hackers@lists.postgresql.org; Tue, 31 Dec 2019 17:43:33 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1imLYG-0004d9-A8 for pgsql-hackers@postgresql.org; Tue, 31 Dec 2019 17:43:31 +0000 Received: by fetter.org (Postfix, from userid 1001) id AA317404D3; Tue, 31 Dec 2019 18:43:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fetter.org; s=default; t=1577814206; bh=pRUp5D3VXjRS3LE3CWBZii4P6PrfXjMvfw/h7sQuJ7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=58URURgYyxjcQawQC7St2Ehg8ETRra9WconBgZb8FA/g/A1aBhlE2avXDdMV6hnJ4 VSW1n2F9f3XxJiDkggJz4SfG5hR+jtJnJ9aNUILhKnomEnVCHmgsERx0gnSLUr5y2i hw8HbeI21DoV/S6nOtM8Ea61lpBkDF1G0iDOrqW724HHy4LqBP/HujCwap45zQIcmj tb39egi5uHUdpTHzKgw2pu2aIv12Amz7xghLUTFuE9Sx2fuwzUIzCyWvyICPTfjPFj TK3RK63tC4s3JDRzxQE88Gevzi+n/GwXTO1809w8steqIYe6yzXaHE6VLDY/kYdDe2 0CPieWg6nW5rg== Date: Tue, 31 Dec 2019 18:43:26 +0100 From: David Fetter To: Tels Cc: Robert Haas , Suraj Kharage , Rushabh Lathia , David Steele , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C Subject: Re: backup manifests Message-ID: <20191231174325.GQ32763@fetter.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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. Would it make sense to include some kind of capability description in the format along with the version number? Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate