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 57FCC9FA25D for ; Tue, 2 May 2006 16:03:48 -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 63287-08 for ; Tue, 2 May 2006 16:03:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by postgresql.org (Postfix) with ESMTP id 6E9C79F9CC1 for ; Tue, 2 May 2006 16:03:42 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx2.surnet.cl with ESMTP; 02 May 2006 15:03:41 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AQAAADtKV0SJAw4q X-IronPort-AV: i="4.02,198,1139194800"; d="scan'208"; a="48093872:sNHT19860284" Received: from alvh.no-ip.org (201.220.122.210) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 443B7DDC002E6811; Tue, 2 May 2006 15:03:40 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id AB281C31DD1; Tue, 2 May 2006 15:03:40 -0400 (CLT) Date: Tue, 2 May 2006 15:03:40 -0400 From: Alvaro Herrera To: Vivek Khera Cc: Pgsql performance Subject: Re: postgresql transaction id monitoring with nagios Message-ID: <20060502190340.GG15291@surnet.cl> Mail-Followup-To: Vivek Khera , Pgsql performance References: <6d8daee30605021126o7b44e255q552dcdc676c565bf@mail.gmail.com> <628A837A-9718-46BB-85D7-8A63BBB1CA32@khera.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <628A837A-9718-46BB-85D7-8A63BBB1CA32@khera.org> User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/35 X-Sequence-Number: 18822 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. (Wow, who wouldn't want a person-wide vacuum if it did the same thing ...) -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support