Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VLGAT-0005gY-MS for pgsql-admin@arkaria.postgresql.org; Sun, 15 Sep 2013 17:31:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VLGAS-0005Co-D6 for pgsql-admin@arkaria.postgresql.org; Sun, 15 Sep 2013 17:31:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VLGAQ-0005Cf-BK for pgsql-admin@postgresql.org; Sun, 15 Sep 2013 17:31:26 +0000 Received: from nm3-vm0.bullet.mail.bf1.yahoo.com ([98.139.212.154]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VLGAL-00066W-SB for pgsql-admin@postgresql.org; Sun, 15 Sep 2013 17:31:25 +0000 Received: from [66.196.81.173] by nm3.bullet.mail.bf1.yahoo.com with NNFMP; 15 Sep 2013 17:31:20 -0000 Received: from [98.139.212.192] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 15 Sep 2013 17:31:20 -0000 Received: from [127.0.0.1] by omp1001.mail.bf1.yahoo.com with NNFMP; 15 Sep 2013 17:31:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 100110.11376.bm@omp1001.mail.bf1.yahoo.com Received: (qmail 62451 invoked by uid 60001); 15 Sep 2013 17:31:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1379266279; bh=iqKyJ1sJqWbkQC7kyTFfkPeJKoW4yyUs5NuDg75S0p4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3ouAUNdSrKDwHisSqR6443+tvTq3ViPwXJU4TD6ovq/H10bZlaKSJ07oFdfOlUk85N7RG+EhdyWSvCZIjqLH0rjD01JJK1oON/YJYu3MRwesEGLDfRlxwmyjIWA+1Bi82XbEsr8q/9OgvEB+yQMUNfkupOEITjtO1vaJr3r59j0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GwxQ4+4AW1zHVYbiAI1m5mV+4fScM8OH0yRibQNaSF3OsU9VBl+tq4MrHIQzAOza0RvH4zCvK8rUtpAAFIIW/TbPKo6WboQQjyb8DpCQNDsM8gC+uBZa253hvl+UBz0/XWhdhsk244fGLx00TlbzehueUuFj+qx1/iOALD2kAVQ=; X-YMail-OSG: yIYlVMAVM1nA2o6sokdexfgmuFnSqtIi1pJDYgU0wZZvXox DPNHOKw6enx9H8vr879kEBb_JNYFoL2RelK22QkFZh_Qm8Yh53kOL5msqlSv bIdJKeC6l2X7lUBM7ah.mxAElnS8JwpZzj9GhrV5I5Nq0PUoz9Nu_WQwKOaw 9YwsxQE1pXBLsrC.qNPKWE4D6SGjKV_LefN138QyiEVa2I_OglSUmZ6HxqWn 0KG4plxPFElv4vL26Dm_P_4z5SFsemloT3aw9QMPAlrs5AynGKkpaK2HgiIa p0ElAKErsNPq4SikXtmRzW7iByRRA_W9uNTEtDG0cId17Dg.uF15jlIo.Q6_ oTmCcBYTUXyrYIiRhsc1k.g43RlfxaWJmepYmGjwt.gVI5VNJFY5zhmm7stR 50RNj9Pps.TRZriv.hTTn_bmEbMKVhFJfew6LWf4PgoqcUfSprgRr_BUQovk l.Sr9B0dXgRIos2lwkH45.Sj5GNessR6Y1i1x1g6Wyjt_f7t12vGLwn55TBq 84i0K1i7j51nCqx6G6U3axXcHw_EW2xHBvNpHpDHZyFYFTOcaMnHggwGMJOu 5v0gG_zXh_felTNSxUjC6EUOs_hMW1vgHlfyK9InKmKYktn9CB9FQPo.QkKj MgQ-- Received: from [76.255.18.237] by web162902.mail.bf1.yahoo.com via HTTP; Sun, 15 Sep 2013 10:31:19 PDT X-Rocket-MIMEInfo: 002.001, UnVyYWwgSHVudGVyIDxydXJhbGh1bnRlckBnbWFpbC5jb20.IHdyb3RlOgoKPiBJJ20gb24gVWJ1bnR1IDEyLjA0LjEgNjRiaXQgd2l0aCAzMiBjb3JlcyBhbmQgMzc3RyBtZW1vcnkuIFRoZQo.IGRhdGEgaXMgc3RvcmVkIG9uIHNldmVyYWwgcmFpMTAgU0FTIDE1ayBkaXNrcy4KCldpdGggYSBtYWNoaW5lIHRoYXQgYmVlZnkgSSBoYXZlIGZvdW5kIGl0IG5lY2Vzc2FyeSB0byBtYWtlIHRoZQphdXRvdmFjdXVtIHNldHRpbmdzIG1vcmUgYWdncmVzc2l2ZS7CoCBPdGhlcndpc2UgdGhlIG5lZWQgZm9yCnZhY3UBMAEBAQE- X-Mailer: YahooMailWebService/0.8.157.561 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> Message-ID: <1379266279.54874.YahooMailNeo@web162902.mail.bf1.yahoo.com> Date: Sun, 15 Sep 2013 10:31:19 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: wrong database name in error message? To: Rural Hunter Cc: Alvaro Herrera , "pgsql-admin@postgresql.org" In-Reply-To: <523507DE.3060909@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 Rural Hunter wrote: > I'm on Ubuntu 12.04.1 64bit with 32 cores and 377G memory. The > data is stored on several rai10 SAS 15k disks. With a machine that beefy I have found it necessary to make the autovacuum settings more aggressive.=A0 Otherwise the need for vacuuming can outpace the ability of autovacuum to keep up. >=A0=A0 autovacuum_freeze_max_age=A0 | 2000000000 | configuration file >=A0=A0 vacuum_freeze_table_age=A0=A0=A0 | 1000000000 | configuration file There's your problem.=A0 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.=A0 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.=A0 Personally, I have never had a reason to change these from the defaults. 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 =3D 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. =A0 --=20 Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin