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 1jm9cI-0004Ms-2h for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 05:31:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jm9cG-0001uc-Vb for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 05:31:04 +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 1jm9cG-0001uV-Nn for pgsql-general@lists.postgresql.org; Fri, 19 Jun 2020 05:31:04 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jm9cE-0008Pc-0O for pgsql-general@postgresql.org; Fri, 19 Jun 2020 05:31:04 +0000 Received: by mail-ej1-x643.google.com with SMTP id gl26so8818288ejb.11 for ; Thu, 18 Jun 2020 22:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PT1COa9X3byhWJtw5Ww6BFLYQ4S6xRjSYH8l8Z2X++0=; b=f45qvpSl2Finph+5LX1EdoFJGn7QLKl6ACRMgbv9w7q+C32b6m0QgtLgHotlYGDs1L Oo3ZsKgeYbU5oAdlT/tziztW/amxnF1GCRDPzZYHOx2DIqQSqXVVIldAzRz9Q62RjgDl svhcjVg3MMqX/+snharP9M39jAmwjTBsau+T75bunSx/o5t37bSY8uqx3FawvU6gDauQ 5WLEffbesushvHqfw3CP9l6InOZjpJsxYeRQT9B/Bl9uJxQnsKC+sxqSgz7sTPyvzuQQ 15Oh5vvSPwMQ3eU59k2fosuujjZAKxENPyrcG0McEH0aD8p9aEUAOd8OlUbI6EnKSJ2H ZIBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PT1COa9X3byhWJtw5Ww6BFLYQ4S6xRjSYH8l8Z2X++0=; b=HZoofTmte6nuK8+RgscRJFyyqr++pLzyvFQkZmaCFbLfB1BaT+YbrzHvywXldszxBQ /AtF3hVKSS1gbnnU+PGWkQWQimtdjd2FDqPns7sRMuILkokrG9rDO3FDB3HQb831zma/ ctGt/PWU9IJCEYRxilrul2j5r/aTJsp7pCT5SDwf3VkIisnp/kpHXZEo/1/m/JkiGvL0 10K3ouPzYTUGvMFXCN299agzgJBSY9Y6LpHgemB33R9BCF/3KyKLNO2G93ppHdtjrmls YJYSiyqLuzbfD9guvuC8seSG7QlvWh1xCtpeacB6Y7b1CGvedHpRxKa7HaUZtpykgmkN iA9w== X-Gm-Message-State: AOAM533cX3T/Fx49a0G6y6al+8gSAR7Zo23wmtC4Jkyejcuq9U/oERka WCh9W2oWqOVRhQyqUzxRmy0= X-Google-Smtp-Source: ABdhPJyEuy1WMB54MMtyn1I7hmif/akzk4frqjgIBOe/tupWm2LweKbei2YTUUlWa5S89K3NyDO+UQ== X-Received: by 2002:a17:906:8387:: with SMTP id p7mr1963797ejx.323.1592544660541; Thu, 18 Jun 2020 22:31:00 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id b14sm3947262ejq.105.2020.06.18.22.30.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2020 22:30:59 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Netapp SnapCenter From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <20200618192642.GH6680@tamriel.snowman.net> Date: Fri, 19 Jun 2020 07:30:59 +0200 Cc: Magnus Hagander , "Wolff, Ken L" , pgsql-general Content-Transfer-Encoding: quoted-printable Message-Id: References: <4D23B288-6A0B-4BDB-A723-FC47F2E832C7@gmail.com> <2C6D03C3-CFF0-4F14-BA83-A2809BA29196@gmail.com> <20200618192642.GH6680@tamriel.snowman.net> To: Stephen Frost X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Stephen, > On 18. Jun, 2020, at 21:26, Stephen Frost wrote: > If the entire database, all tablespaces, and pg_wal, are on the same > volume and the snapshot of the volume is atomic, then you don't = actually > need to go through the start/stop backup- a snapshot being restored = will > look just like a system crash and PG will just go back to the last > checkpoint and replay the WAL that's in pg_wal and it should reach > consistency and come up. we DID use tablespaces as an old habit (coming from Oracle :-( when = everything PostgreSQL was new). When we realized what a bad idea that = was, I reorganized them all away. So we don't use tablespaces anymore. = Still, they used to be on the same volume, just a different directory. = So even that would have been no problem in this particular case. :-) Only Flyway doesn't like a DBA to reorg a tablespace if developers add a = tablespace clause to their create table/index statements. But we made = the developers remove those clauses. > The one issue here is that if you're using the deprecated exxclusive > backup API, then PG will create a backup_label file in the data > directory. If the system reboots while that file exists, there's a = good > chance that PG won't start up cleanly since, due to the file existing, > it thinks that it's restoring from a backup when it isn't. we don't. We use the non-exclusive backup mode according to: 25.3.3.1. Making A Non-Exclusive Low-Level Backup https://www.postgresql.org/docs/current/continuous-archiving.html But I must say that I'm really not a friend of being forced to keep the = session open until the pg_stop_backup() call occurs. This really gave me = a huge headache when writing the backup script. It's solved now but I = consider this very ugly. When I wrote our backup mode script I read the deprecation note about = the exclusive mode backup. This is why I decided to go with = non-exclusive to be ready when exclusive backup mode is finally removed = some day. Yet, I don't see the reason. Everything has to be consistent. = So a non-exclusive backup mode makes absolutely no sense to me. Either = the whole database cluster is in backup mode or it is not. There's = nothing in between. This is unlike Oracle where you can set single tablespaces to backup = mode and then just backup them separately. Still, I never saw a use for = this with Oracle too. Cheers, Paul=