Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D84AB64FD0F for ; Tue, 28 Oct 2008 08:25:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13072-10 for ; Tue, 28 Oct 2008 08:25:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail129176.authsmtp.com (outmail129176.authsmtp.com [62.13.129.176]) by postgresql.org (Postfix) with ESMTP id 0947364FCEE for ; Tue, 28 Oct 2008 08:25:46 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m9SBPDs8088746; Tue, 28 Oct 2008 11:25:13 GMT Received: from [192.168.0.3] (85-211-99-122.dyn.gotadsl.co.uk [85.211.99.122]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m9SBPAZT059145; Tue, 28 Oct 2008 11:25:10 GMT Subject: Re: Visibility map, partial vacuums From: Simon Riggs To: Heikki Linnakangas Cc: PostgreSQL-development In-Reply-To: <4905AE17.7090305@enterprisedb.com> References: <4905AE17.7090305@enterprisedb.com> Content-Type: text/plain Date: Tue, 28 Oct 2008 11:25:08 +0000 Message-Id: <1225193108.3971.154.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 166000fa-a4e3-11dd-8a51-002264978518 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFag1bYlpF HGQLW1xEUVx7W2Z/ agkfZQBDYEtPQQxj TklLQE1QEQdtHhxP Wxd9IHkDHWFGfXdx YUMsX3NaWgp7c0B9 Qk4CRHBXYTJjdWEe BBRFf1JRcR5Kfh1H bFR2U3sIYG1JBC9q VzwTFhsSEA9kHWxr QxoMJ1MWQFoaVjs1 X1RKBTw1AUwMQ20t Jhc7N1sHdDg2 X-Authentic-SMTP: 61633235383639.pelican.dmpriest.net.uk:1378/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/1384 X-Sequence-Number: 126401 On Mon, 2008-10-27 at 14:03 +0200, Heikki Linnakangas wrote: > One option would be to just ignore that problem for now, and not > WAL-log. Probably worth skipping for now, since it will cause patch conflicts if you do. Are there any other interactions with Hot Standby? But it seems like we can sneak in an extra flag on a HEAP2_CLEAN record to say "page is now all visible", without too much work. Does the PD_ALL_VISIBLE flag need to be set at the same time as updating the VM? Surely heapgetpage() could do a ConditionalLockBuffer exclusive to set the block flag (unlogged), but just not update VM. Separating the two concepts should allow the visibility check speed gain to more generally available. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support