X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A360D3A4955 for ; Thu, 28 Oct 2004 18:21:39 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69862-10 for ; Thu, 28 Oct 2004 17:21:37 +0000 (GMT) Received: from tht.net (vista.tht.net [216.126.88.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4CF213A494A for ; Thu, 28 Oct 2004 18:21:37 +0100 (BST) Received: from [134.22.69.212] (dyn-69-212.tor.dsl.tht.net [134.22.69.212]) by tht.net (Postfix) with ESMTP id 9F22F76A35; Thu, 28 Oct 2004 13:21:35 -0400 (EDT) Subject: Re: Performance Anomalies in 7.4.5 From: Rod Taylor To: Tom Lane Cc: Josh Berkus , Postgresql Performance In-Reply-To: <2815.1098981088@sss.pgh.pa.us> References: <20041028080109.E47A83A4828@svr1.postgresql.org> <200410280907.00445.josh@agliodbs.com> <2815.1098981088@sss.pgh.pa.us> Content-Type: text/plain Message-Id: <1098984056.8557.637.camel@home> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 28 Oct 2004 13:20:56 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/463 X-Sequence-Number: 8939 On Thu, 2004-10-28 at 12:31, Tom Lane wrote: > Josh Berkus writes: > >> One drawback to this is that it would require an additional lseek per table > >> while planning, but that doesn't seem like a huge penalty. > > > Hmmm ... would the additional lseek take longer for larger tables, or would it > > be a fixed cost? > > Should be pretty much a fixed cost: one kernel call per table. Is this something that the bgwriter could periodically do and share the data? Possibly in the future it could even force a function or prepared statement recompile if the data has changed significantly?