Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sY4R0-008bey-FB for pgsql-admin@arkaria.postgresql.org; Sun, 28 Jul 2024 13:59:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sY4Pz-00BMHz-7S for pgsql-admin@arkaria.postgresql.org; Sun, 28 Jul 2024 13:58:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sY4Py-00BMHr-DR for pgsql-admin@lists.postgresql.org; Sun, 28 Jul 2024 13:58:34 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sY4Pv-001sfy-Nm for pgsql-admin@postgresql.org; Sun, 28 Jul 2024 13:58:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id E5CA4E18F5; Sun, 28 Jul 2024 13:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1722175108; bh=LebU02COMb+/HO6q1rov21gabjLep3xLm/UkmmXKPbg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=AFUL23jlIw7PHRBImBq/5GrCAhNx3nT10sOCNP7d/eONaQVE9Jg3pjYJA32Ytp4A5 gkJSnibtDoYhxv7OQ5HXgoXfnTp2sDmLYxsn8b58Y0lKafB/ah7iBbAoYd2lNIPIpm /UpysHz/h9zFMsMwmbTgRx7+4xvQQ9q6ylpz04rfwDP3A4VxnlK/PCMDRNevNTSE5i vC0l94Qiv2ywFVcDy3H9sHYaUwvwDdP2EhHuqf+UQi9iRDvU+cLXWxy15oh/ieUXDb ktSDqQ2GKzGBVkTJlaY7EvGvCnxyqoO0rNMsqt6g4DAjSX7zyATi2ODyFGRJ+SrObA yUyXlAC+M1ScQ== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G7wcNagFukQG; Sun, 28 Jul 2024 13:58:28 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 5B44CE18E7; Sun, 28 Jul 2024 13:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1722175108; bh=LebU02COMb+/HO6q1rov21gabjLep3xLm/UkmmXKPbg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=AFUL23jlIw7PHRBImBq/5GrCAhNx3nT10sOCNP7d/eONaQVE9Jg3pjYJA32Ytp4A5 gkJSnibtDoYhxv7OQ5HXgoXfnTp2sDmLYxsn8b58Y0lKafB/ah7iBbAoYd2lNIPIpm /UpysHz/h9zFMsMwmbTgRx7+4xvQQ9q6ylpz04rfwDP3A4VxnlK/PCMDRNevNTSE5i vC0l94Qiv2ywFVcDy3H9sHYaUwvwDdP2EhHuqf+UQi9iRDvU+cLXWxy15oh/ieUXDb ktSDqQ2GKzGBVkTJlaY7EvGvCnxyqoO0rNMsqt6g4DAjSX7zyATi2ODyFGRJ+SrObA yUyXlAC+M1ScQ== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Faster pg_resore with autovacuum off? From: Scott Ribe In-Reply-To: Date: Sun, 28 Jul 2024 07:58:17 -0600 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com> References: <4ecf57eb54f6d457357e3882c6e9b0e6eb89aa1b.camel@cybertec.at> <154A742E-51A3-4A56-A570-65B9E6A14A4D@elevated-dev.com> To: Laurenz Albe X-Mailer: Apple Mail (2.3774.600.62) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 28, 2024, at 6:40=E2=80=AFAM, Laurenz Albe = wrote: >=20 > That's bad advice. Very bad advice. > That is, unless you are ready to delete the cluster and run a new = "initdb" after an OS crash. Exactly. > You are wrong: it is not the database that is broken after a crash, = but the entire cluster. Good clarification. I personally have never had occasion to move a = partial cluster, so my use of "database" in my question was sloppy, I = meant "cluster". So yes, I'd delete the cluster and initdb if I ever = actually had an OS crash during a pg_restore--which in 20 years of using = PG has never happened. I suppose it might matter more if one were forced = to run one's db on an unstable platform ;-)=