Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayL4U-0000zN-N1 for pgsql-admin@arkaria.postgresql.org; Thu, 05 May 2016 15:20:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ayL4U-0004pj-9u for pgsql-admin@arkaria.postgresql.org; Thu, 05 May 2016 15:20:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ayL4T-0004oD-JK for pgsql-admin@postgresql.org; Thu, 05 May 2016 15:20:09 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ayL4N-0006m4-2F for pgsql-admin@postgresql.org; Thu, 05 May 2016 15:20:08 +0000 Received: by mail-wm0-x229.google.com with SMTP id g17so33380604wme.1 for ; Thu, 05 May 2016 08:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flexibee-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=G7olA073bRSRI853GO2bylZ5Ey5zDLU8WOCClxGas3w=; b=MfIUJfNRPobsErRKl3RWU6Pc7wuhbego2dRlDSCjbLw6DYbmC4YATBHOYx8sPkshPx GgBH5E2fftLgWuH+k9FNJPchiAPuLELLn9zc4hqt+p8Xa5dXTcNgKsUquOsDpL58SS5l yfYVm0fv1ecNiPohdbenh6mcSOkcFEWC6NsbAPmLzEuIcsP/RP+3daKn7Ww/qUizg70M IZqPaYO3F5Z0vQ2EzxhXwExjYhAv/b+r6NJbF0heXP0LCKEOzyKpINCDhZUVQTaEPC8S 9MHFfgepkpUZ3ZD8MMOKpaILtrMFKdEgPp9sZaMdGTkQk6ZImdsJoU5aN5cRVC3UIHLj mmPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=G7olA073bRSRI853GO2bylZ5Ey5zDLU8WOCClxGas3w=; b=gUkzpvFkJwYwfg42agXre0YR7qRwmseVVkAJbG+oo+lVhZLRPbUSKPKPV2wk2RtBlX xZXxn+DMwiyPRfH5IN1w2E4okIoYA+M0q7qRc6vStiEOslLjWwhyxkbcoZPZ7zN2uY2+ 7aKppGsG7WnBvVSxEZL0v2l9baKts5gTBYIdhrXvodfcuFbhZRnUP/dhx1qdbtBSmHNP ao8tn1/2PWvobP1BODsnC2ftojmhCk/CB9eswDzdDMoOjIWigpTfiZKZ5sGxsG7EvXFZ S3+1UPUnz6gXp7mbahusGU6f1dnC4rqqJOlvGpzYO25optrAB2ETDZs9C572PnTHPnrD Fd+Q== X-Gm-Message-State: AOPr4FWbHFRM878katFnPOX+6oInYwrAqDVRqemnpuJesw7rWrqL1flTeiZ5IFHKTP2vfzkO X-Received: by 10.28.63.148 with SMTP id m142mr3859078wma.85.1462461601038; Thu, 05 May 2016 08:20:01 -0700 (PDT) Received: from osvetlik-nb.localdomain ([88.208.120.47]) by smtp.gmail.com with ESMTPSA id o73sm3685862wme.16.2016.05.05.08.20.00 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 May 2016 08:20:00 -0700 (PDT) Subject: Re: Autovacuum of pg_database To: pgsql-admin@postgresql.org References: <572B63B1.3030603@flexibee.eu> From: =?UTF-8?B?T25kxZllaiBTdsSbdGzDrWs=?= Message-ID: <572B649F.7070702@flexibee.eu> Date: Thu, 5 May 2016 17:19:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <572B63B1.3030603@flexibee.eu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Dne 5.5.2016 v 17:16 Ondřej Světlík napsal(a): > Hello again, > > we have another strange problem with autovacuum. The process goes well > until it reaches the table pg_database (in some databases, not all), > then it loops over it forever (until I run vacuum full analyze on that > table, simple vacuum doesn't help): > > 2016-05-05 17:13:33 CEST 34818LOG: automatic vacuum of table > "somedatabase.pg_catalog.pg_database": index scans: 0 > pages: 0 removed, 233 remain > tuples: 0 removed, 5817 remain, 0 are dead but not yet removable > buffer usage: 87 hits, 0 misses, 0 dirtied > avg read rate: 0.000 MB/s, avg write rate: 0.000 MB/s > system usage: CPU 0.00s/0.00u sec elapsed 0.00 sec > 2016-05-05 17:13:33 CEST 34819LOG: automatic vacuum of table > "somedatabase.pg_catalog.pg_database": index scans: 0 > pages: 0 removed, 233 remain > tuples: 0 removed, 5817 remain, 0 are dead but not yet removable > buffer usage: 87 hits, 0 misses, 0 dirtied > avg read rate: 0.000 MB/s, avg write rate: 0.000 MB/s > system usage: CPU 0.00s/0.00u sec elapsed 0.00 sec > 2016-05-05 17:13:33 CEST 34820LOG: automatic vacuum of table > "somedatabase.pg_catalog.pg_database": index scans: 0 > pages: 0 removed, 233 remain > tuples: 0 removed, 5817 remain, 0 are dead but not yet removable > buffer usage: 87 hits, 0 misses, 0 dirtied > avg read rate: 0.000 MB/s, avg write rate: 0.000 MB/s > system usage: CPU 0.00s/0.00u sec elapsed 0.00 sec > 2016-05-05 17:13:34 CEST 34821LOG: automatic vacuum of table > "somedatabase.pg_catalog.pg_database": index scans: 0 > pages: 0 removed, 233 remain > tuples: 0 removed, 5817 remain, 0 are dead but not yet removable > buffer usage: 87 hits, 0 misses, 0 dirtied > avg read rate: 0.000 MB/s, avg write rate: 0.000 MB/s > system usage: CPU 0.00s/0.00u sec elapsed 0.00 sec > > Not sure if it's a bug or I'm doing something wrong. > > Thanks in advance, > > Ondřej Another part of log shows, that the process tries pg_database twice, than it does one other table and than back to pg_database for the rest of our days: 2016-05-05 17:16:56 CEST 36675LOG: automatic vacuum of table "someotherdb.pg_catalog.pg_database": index scans: 0 pages: 0 removed, 233 remain tuples: 0 removed, 5817 remain, 0 are dead but not yet removable buffer usage: 36 hits, 50 misses, 2 dirtied avg read rate: 3.277 MB/s, avg write rate: 0.131 MB/s system usage: CPU 0.00s/0.00u sec elapsed 0.11 sec 2016-05-05 17:16:56 CEST 36676LOG: automatic vacuum of table "someotherdb.pg_catalog.pg_database": index scans: 0 pages: 0 removed, 233 remain tuples: 0 removed, 5817 remain, 0 are dead but not yet removable buffer usage: 68 hits, 18 misses, 0 dirtied avg read rate: 2.563 MB/s, avg write rate: 0.000 MB/s system usage: CPU 0.00s/0.00u sec elapsed 0.05 sec 2016-05-05 17:16:56 CEST 36674LOG: automatic vacuum of table "someotherdb.pg_toast.pg_toast_2618": index scans: 1 pages: 58 removed, 50 remain tuples: 141 removed, 219 remain, 0 are dead but not yet removable buffer usage: 151 hits, 192 misses, 73 dirtied avg read rate: 2.728 MB/s, avg write rate: 1.037 MB/s system usage: CPU 0.00s/0.00u sec elapsed 0.54 sec 2016-05-05 17:16:56 CEST 36677LOG: automatic vacuum of table "someotherdb.pg_catalog.pg_database": index scans: 0 pages: 0 removed, 233 remain tuples: 0 removed, 5817 remain, 0 are dead but not yet removable buffer usage: 86 hits, 0 misses, 0 dirtied avg read rate: 0.000 MB/s, avg write rate: 0.000 MB/s system usage: CPU 0.00s/0.00u sec elapsed 0.01 sec Ondřej -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin