Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VLNi6-00016L-BO for pgsql-admin@arkaria.postgresql.org; Mon, 16 Sep 2013 01:34:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VLNi5-0000B2-69 for pgsql-admin@arkaria.postgresql.org; Mon, 16 Sep 2013 01:34:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VLNi4-00009r-2z for pgsql-admin@postgresql.org; Mon, 16 Sep 2013 01:34:40 +0000 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VLNi1-0005yP-39 for pgsql-admin@postgresql.org; Mon, 16 Sep 2013 01:34:39 +0000 Received: by mail-pd0-f173.google.com with SMTP id p10so3470243pdj.18 for ; Sun, 15 Sep 2013 18:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=n7O3RtAVthBgCxwPWVrOElNj7mmUXLkpx9Wi/pRXdkM=; b=hUtodvU41vQLeSRL9LwS4iNI4AD09HjV4P09sR/YrdsbIdzMrsf6RdhyQYZAmE8uS3 zBIY66Sm4RTo+xQMs03MdQG+qt9E446nI/PyCYaQY432iNXsgDFzf78EqRaDe6l1KK16 0Ia8nsbUqiWicr5u5n5Bc6c2FGHMIAF4vxTZQgnNhD1rIhaIt/cvd3NOFLepUxJKAwpL O8TWPZX39bL/6ubqrHGpXhtwFxBWlCFafyMIfuaP2GiAbQtBqkbb+GfFues3jgLr4Enj OmTIU0+B7qstMgUaYizdPkrVaXelpp6GRNBaHBr2MoJPoznIZZjd9K1SJRScLD8mO12S Ifwg== X-Received: by 10.68.247.36 with SMTP id yb4mr311986pbc.138.1379295274735; Sun, 15 Sep 2013 18:34:34 -0700 (PDT) Received: from [192.168.2.100] ([116.226.52.243]) by mx.google.com with ESMTPSA id vz4sm34539666pab.11.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Sep 2013 18:34:33 -0700 (PDT) Message-ID: <52366022.8020706@gmail.com> Date: Mon, 16 Sep 2013 09:34:26 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Kevin Grittner CC: "pgsql-admin@postgresql.org" Subject: Re: wrong database name in error message? References: <5233BA90.3020107@gmail.com> <20130914045519.GD5033@eldon.alvh.no-ip.org> <5233F3A9.30901@gmail.com> <1379178368.98727.YahooMailNeo@web162901.mail.bf1.yahoo.com> <523507DE.3060909@gmail.com> <1379266279.54874.YahooMailNeo@web162902.mail.bf1.yahoo.com> In-Reply-To: <1379266279.54874.YahooMailNeo@web162902.mail.bf1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.0 (--) 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 于 2013/9/16 1:31, Kevin Grittner 写道: > There's your problem. You left so little space between when > autovacuum would kick in for wraparound prevention (2 billion > transactions) and when the server prevents new transactions in > order to protect your data (2 ^ 31 - 1000000 transactions) that > autovacuum didn't have enough time to complete its effort to do so. > > Changing a setting to ten times its default value is something > which should always be approached with caution. In this case you > changed the threshold for starting the work to prevent data loss > from a little under 10% of the distance to the disastrous condition > to a little under 100% of that distance. > > You could play with non-standard setting for these, but if you go > anywhere near this extreme you risk downtime like you have just > experienced. Personally, I have never had a reason to change these > from the defaults. OK, thanks for pointing out the problem. This was changed quite long time ago when I saw too frequent auto vacuums to prevent the wrap-around on a very busy/large table which slow down the performance. I will change it back to the default to see how it works. > > To ensure that autovacuum can keep up with the activity on a > machine like this, I have generally gone to something like: > > autovacuum_cost_limit = 800 > > If you have more than a couple large tables which take long enough > to scan to prevent small, frequently-updated tables from getting > attention soon enough, you might want to boost > autovacuum_max_workers, too. > I will try the parameters as you suggested too. So you guys still think the problem is on db1(that's my main db) as the error message stated? Just auto-vacuum on db1 kicked off somehow and fixed the problem when I was running vacuum on other dbs? -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin