X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B891511F68D6 for ; Mon, 24 Apr 2006 15:50:28 -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 62626-01-10 for ; Mon, 24 Apr 2006 15:49:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 32C8711F6AB9 for ; Mon, 24 Apr 2006 15:00:42 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 3320256423; Mon, 24 Apr 2006 13:00:39 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 24 Apr 2006 13:00:38 -0500 Date: Mon, 24 Apr 2006 13:00:38 -0500 From: "Jim C. Nasby" To: Gourish Singbal , "pgsql-admin@postgresql.org" Subject: Re: Autovacuuming Message-ID: <20060424180038.GG48010@pervasive.com> References: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com> <20060424124155.GA13361@surnet.cl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060424124155.GA13361@surnet.cl> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060424:gourish@gmail.com::X65iW4766mmUVYW/:00000000000000000000 0000000000000000000000001qPB X-Hashcash: 1:20:060424:pgsql-admin@postgresql.org::8D4vMBERX6jyd+Cb:00000000000 00000000000000000000000044W0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/247 X-Sequence-Number: 21416 On Mon, Apr 24, 2006 at 08:41:55AM -0400, Alvaro Herrera wrote: > The test for database-wide vacuum is: > > database age > big_constant > > where: > > big_constant = (MaxTransactionId >> 3) * 3 - 100000) = 1610512733 Ok, I'll bite... any idea how (MaxTransactionId >> 3) * 3 was chosen? I don't see anything about it in vacuum.c... Also, maybe that should be defined in one place rather than duplicating it in autovacuum.c? -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461