pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP
Date: Sat, 27 Jun 2020 15:09:54 -0700
Message-ID: <445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.com> (raw)
In-Reply-To: <20200627175229.GA4739@sh4-5.1blu.de>
References: <20200625111137.GA15798@sh4-5.1blu.de>
	<20200625125402.GA27634@sh4-5.1blu.de>
	<bdddf16b-b9df-4092-d8e7-78604736b8a3@aklaver.com>
	<20200625180329.GA19346@sh4-5.1blu.de>
	<fae083a8-dfc6-a133-aaa3-95af8011f70f@aklaver.com>
	<aeb27c70-db81-4012-b6c8-2bbc54f45013@unixarea.de>
	<2291754.1593116700@sss.pgh.pa.us>
	<20200627083722.GA14793@sh4-5.1blu.de>
	<4652643d-d6a1-afc0-ff46-0316b2216bf8@aklaver.com>
	<20200627175229.GA4739@sh4-5.1blu.de>

On 6/27/20 10:52 AM, Matthias Apitz wrote:
> El día Samstag, Juni 27, 2020 a las 07:21:21 -0700, Adrian Klaver escribió:
> 
>>> 2020-06-27 10:23:02.631 CEST [18302] ERROR:  canceling autovacuum task
>>> 2020-06-27 10:23:02.631 CEST [18302] CONTEXT:  automatic analyze of table "testdump.public.idm_tasktab"
>>>
>>  From what I understand they are occurring because the machine is to busy
>> doing the restore to get to the autovacuum task in a timely manner. So I
>> would say ignore and check back later to see that the autovacuum is working.
>> Given that it is ANALYZE that is being cancelled I would run a manual
>> ANALYZE after the restore is done to update the database statistics.
> 
> The machine is a development server and no one was working on it (today
> is Saturday) apart of me. It has 4 modern and fast CPU,
> 
> Running ANALYZE VERBOSE does not give any unusual output. Only for each
> table lines like:

I would not expect that it would. The purpose for running it was to make 
sure the statistics for the tables in the database where up to date.

> 
> ...
> INFO:  analyzing "public.z39t_term"
> INFO:  "z39t_term": scanned 2 of 2 pages, containing 135 live rows and 0 dead rows; 135 rows in sample, 135 estimated total rows
> INFO:  analyzing "public.z39t_trunc"
> INFO:  "z39t_trunc": scanned 1 of 1 pages, containing 135 live rows and 0 dead rows; 135 rows in sample, 135 estimated total rows
> ...
> 
> How could I check that the autovacuum is working?

Two ways:

1) Look in the logs for autovacuum lines.

2) Query the pg_stat_all_tables view.

https://www.postgresql.org/docs/12/monitoring-stats.html#PG-STAT-ALL-TABLES-VIEW


> 
> Thanks
> 
> 	matthias
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (14+ messages)

Message-ID: <445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.com>
Permalink:  ../445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.com/
Also on:    postgresql.org/message-id/445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.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 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: adrian.klaver@aklaver.com, guru@unixarea.de
  Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP
  In-Reply-To: <445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.com>
  References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> <bdddf16b-b9df-4092-d8e7-78604736b8a3@aklaver.com> <20200625180329.GA19346@sh4-5.1blu.de> <fae083a8-dfc6-a133-aaa3-95af8011f70f@aklaver.com> <aeb27c70-db81-4012-b6c8-2bbc54f45013@unixarea.de> <2291754.1593116700@sss.pgh.pa.us> <20200627083722.GA14793@sh4-5.1blu.de> <4652643d-d6a1-afc0-ff46-0316b2216bf8@aklaver.com> <20200627175229.GA4739@sh4-5.1blu.de> <445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.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