agora inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: Scott Ribe <scott_ribe@elevated-dev.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Faster pg_resore with autovacuum off?
Date: Sun, 28 Jul 2024 07:58:17 -0600
Message-ID: <7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com> (raw)
In-Reply-To: <e8a5593d5310ea187aaf213e7a5791127c304308.camel@cybertec.at>
References: <CAOC+FBXP+xQ5fXbqpS-JTKq1D90DSxd+Vzz+UYDF0mfq1bVvRQ@mail.gmail.com>
<4ecf57eb54f6d457357e3882c6e9b0e6eb89aa1b.camel@cybertec.at>
<CANzqJaC7WgnV74NnLraw_2siNFa6Jkb2d+S7Y9nucAxJpZnaeA@mail.gmail.com>
<154A742E-51A3-4A56-A570-65B9E6A14A4D@elevated-dev.com>
<e8a5593d5310ea187aaf213e7a5791127c304308.camel@cybertec.at>
> On Jul 28, 2024, at 6:40 AM, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
>
> 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 ;-)
view thread (15+ messages) latest in thread
Message-ID: <7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com>
Permalink: ../7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com/
Also on: postgresql.org/message-id/7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott_ribe@elevated-dev.com, laurenz.albe@cybertec.at
Subject: Re: Faster pg_resore with autovacuum off?
In-Reply-To: <7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox