From: Ekaterina Amez <ekaterina.amez@zunibal.com>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Sv: Conflict between autovacuum and backup restoration
Date: Fri, 18 Oct 2019 10:59:18 +0200
Message-ID: <19096b9a-a5da-4097-6b19-fb05440dceb6@zunibal.com> (raw)
In-Reply-To: <VisenaEmail.7f.4ca6d7023168aa3e.16dda0d1d1a@tc7-visena>
References: <VisenaEmail.7f.4ca6d7023168aa3e.16dda0d1d1a@tc7-visena>
El 17/10/19 a las 16:12, Andreas Joseph Krogh escribió:
>
>
> But I don't understand why I'm getting those messages about autovacuum
> blocking db restore process. I guess that after one table is created
> with COPY sentence, as many rows have been inserted, autoanalyze
> process
> runs to gather statistics for the Execution Planner. But why is
> happening this block? Is autoanalyze running before the table gets
> fully
> loaded? Is this really a problem? If so, how can I handle it? This
> task
> is running at night, when nobody is using second database.
>
>
> Thank you for reading,
>
> Ekaterina
>
> It is normal to get these "canceling autovacuum"-messages when
> restoring a database, just ignore them.
> If it bothers you, just turn autovacuum off by setting this in
> postgresql.conf:
> autovacuum = off
> and reload the config (SIGHUP)
The server stores more Production databases and I don't want to
interfere with them, and turning off autovacuum will affect all of them.
I've been looking for other parameters that could help me to avoid
autoanalyze during backup restoration but all of them (at least the
ones I've been exploring) have sighup context associated, like
autovacuum. Is there any parameter (in v8.4) that could somehow stop
autoanalyze only in the connection used to restore the database?
> --
> Andreas Joseph Krogh
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ekaterina.amez@zunibal.com, andreas@visena.com
Subject: Re: Conflict between autovacuum and backup restoration
In-Reply-To: <19096b9a-a5da-4097-6b19-fb05440dceb6@zunibal.com>
References: <VisenaEmail.7f.4ca6d7023168aa3e.16dda0d1d1a@tc7-visena> <19096b9a-a5da-4097-6b19-fb05440dceb6@zunibal.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox