X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 032EB9F9CC1 for ; Tue, 2 May 2006 16:07:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 73802-08 for ; Tue, 2 May 2006 16:07:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by postgresql.org (Postfix) with ESMTP id C06B19FB1D3 for ; Tue, 2 May 2006 16:07:45 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 02 May 2006 15:07:42 -0400 X-IronPort-AV: i="4.04,172,1144036800"; d="scan'208"; a="59165266:sNHT41790088" Received: from alvh.no-ip.org (201.220.122.210) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 443B7DDC002E6A36; Tue, 2 May 2006 15:07:42 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id D44CDC31DD1; Tue, 2 May 2006 15:07:41 -0400 (CLT) Date: Tue, 2 May 2006 15:07:41 -0400 From: Alvaro Herrera To: Vivek Khera , Pgsql performance Subject: Re: postgresql transaction id monitoring with nagios Message-ID: <20060502190741.GI15291@surnet.cl> Mail-Followup-To: Vivek Khera , Pgsql performance References: <6d8daee30605021126o7b44e255q552dcdc676c565bf@mail.gmail.com> <628A837A-9718-46BB-85D7-8A63BBB1CA32@khera.org> <20060502190340.GG15291@surnet.cl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060502190340.GG15291@surnet.cl> User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/37 X-Sequence-Number: 18824 Alvaro Herrera wrote: > Vivek Khera wrote: > > > > On May 2, 2006, at 2:26 PM, Tony Wasson wrote: > > > > >The script detects a wrap at 2 billion. It starts warning once one or > > >more databases show an age over 1 billion transactions. It reports > > >critical at 1.5B transactions. I hope everyone out there is vacuuming > > >*all* databases often. > > > > Something seems wrong... I just ran your script against my > > development database server which is vacuumed daily and it said I was > > 53% of the way to 2B. Seemed strange to me, so I re-ran "vacuum -a - > > z" to vacuum all databases (as superuser), reran the script and got > > the same answer. > > That's right, because a database's age is only decremented in > database-wide vacuums. Forget it ... I must be blind ... -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.