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 1l8z1E-0001BI-VY for pgsql-admin@arkaria.postgresql.org; Mon, 08 Feb 2021 05:23:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l8z1D-0002eN-TJ for pgsql-admin@arkaria.postgresql.org; Mon, 08 Feb 2021 05:23:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8z1D-0002eA-FT for pgsql-admin@lists.postgresql.org; Mon, 08 Feb 2021 05:23:27 +0000 Received: from admin.sibptus.ru ([2001:19f0:5001:21dc::10]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8z1B-0007tx-04 for pgsql-admin@lists.postgresql.org; Mon, 08 Feb 2021 05:23:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=P5V4Tu8g5067AeB4GJ++LAN0SMa73/RzxGnJayqxv3Q=; b=AHvgdfWEcXZrHvRJY/2/epdR7X pF0GdCuyooSQAc9ZhrHTZps82oa7I9qzPqhWVjZGvsKVXm+nLTdI4COMB3bWeV9JmQ4QZGpgQJe6D 1mt+V80Kpkdp8I71jhzyZ+ARLAFcvAXJ/aP5kRW7XHY17aSIrg2Eb8AQ27kTdSm9Mmio=; Received: from vas by admin.sibptus.ru with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1l8z17-000FLE-2D for pgsql-admin@lists.postgresql.org; Mon, 08 Feb 2021 12:23:21 +0700 Date: Mon, 8 Feb 2021 12:23:21 +0700 From: Victor Sudakov To: pgsql-admin@lists.postgresql.org Subject: Re: wal-g (https://github.com/wal-g/wal-g) reliability Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Nikolay Samokhvalov wrote: > In short, it's reliable and battle-tested. It's used in companies such as > Yandex.Cloud and GitLab.com, successfully. Nikolay, don't you mind another question? I'm used to the fact that "pg_basebackup -X" creates a self-sufficient backup of a cluster which can be started right away as it contains all the WAL files required for recovery. `touch recovery.signal` is never necessary, and `touch standby.signal` is optional (when you do PITR etc). It's not the case with wal-g, the result of the `wal-g backup-fetch` command requires `touch recovery.signal` and a restore_command configured to fetch WALs from the wal-g storage. I have also noticed that wal-g keeps pg_control in a separate tar archive, and keeps a lot of metadata. The questions are: 1. If the metadata in the wal-g storage ever becomes corrupt, will I be able to restore the database manually from the archives in $WALG_*_PREFIX/{basebackups,wal}_005/ ? 2. Is there a `wal-g backup-fetch` option for truly self-sufficient restoration? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/