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 1jpJ1S-0002tL-9k for pgsql-general@arkaria.postgresql.org; Sat, 27 Jun 2020 22:10: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 1jpJ1R-000466-2M for pgsql-general@arkaria.postgresql.org; Sat, 27 Jun 2020 22:10:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpJ1P-00045z-3I for pgsql-general@lists.postgresql.org; Sat, 27 Jun 2020 22:10:04 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpJ1L-0005Kr-MD for pgsql-general@lists.postgresql.org; Sat, 27 Jun 2020 22:10:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D5E65341; Sat, 27 Jun 2020 18:09:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 27 Jun 2020 18:09:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=M p4z54o4J+dn6tyYD6NQ7lQCvt6Wi3IGd623NMNIGyI=; b=NU0nYbBDYl7Y1ZSTG GWPo1UkQFiJqPvc54pWOUN8uuFVr6RrqvIqUEoMD0uKGoeMufCBIF3G1FHS1njrE xPSle0qbK3yfUQnUmIFWzGg0pd3NTZZpePGQIyI0nhCKEYgLKtWvjxmf4kmpuukA NjNdA5xtzlB6+7ux/doGb15JZBt0yOJG20R2F4jlohmpCjN23lokbVRVVKvafr3F pB3Y82ZeAubJfmXmyax+bakIRxcPrEFfa8namor1kdd0WJVuidp5hQ2OPgoBo1TN 77vlV7Znz/BjHz9odP1Tfq093MY4sMCUx7KgCiVqI0SRR08VIjPLjGQLZACKvHCU WgsDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Mp4z54o4J+dn6tyYD6NQ7lQCvt6Wi3IGd623NMNIG yI=; b=dRFi+1N6CvMlWz4iU52R1h+UH7uk8iE2/D4Rp9NMaqI+oZa9w0K/rWVxH kJlg4DJ9g5X8dU698fc5N0JKAoXuBsWhtkfHFKOGtNPSYbFo+ElvCePJTluIFpX7 Xc6XTvpARMO8cMqtfbCKnSTRicXOcS155jCZZLBSgLHpaqLEjZEwZ+PHMD+WhoyN xbsKu6tDmYL0mWapfNnLopkNroSbyjvqX1jZ3oNlC+Ymb5hhJYyA+ibn3cuzeFIe cXA0SZCEbb8AfL8KbKbe1NZfCSKzGZBvgsHtjSXD9gJXIyd1igNE8WWfKIe8SV7k Ae5iiLWuGHWMhKnStodA2s0KnrNDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudelgedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepuddufeejte evffehgfduhedthfdvteekieeuheefveevudetkeelueehgeduhefhnecuffhomhgrihhn pehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjeehrddujedvrdehrddvfedunecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 2337F328005E; Sat, 27 Jun 2020 18:09:55 -0400 (EDT) Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP To: Matthias Apitz , pgsql-general@lists.postgresql.org References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> <20200625180329.GA19346@sh4-5.1blu.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> From: Adrian Klaver Message-ID: <445b2c80-80d6-baeb-39a7-1396f7d5ea39@aklaver.com> Date: Sat, 27 Jun 2020 15:09:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200627175229.GA4739@sh4-5.1blu.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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