Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7126E1336971 for ; Wed, 29 Sep 2010 13:37:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 13163-06 for ; Wed, 29 Sep 2010 16:36:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 555FA133655C for ; Wed, 29 Sep 2010 13:36:56 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 29 Sep 2010 11:36:55 -0500 Message-Id: <4CA324CD0200002500036117@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 29 Sep 2010 11:36:45 -0500 From: "Kevin Grittner" To: "=?ISO-8859-15?Q?Fabr=EDcio=20dos=20Anjos=20Silva?=" , Subject: Re: How does PG know if data is in memory? References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/205 X-Sequence-Number: 40408 Fabrício dos Anjos Silva wrote: > After reading lots of documentation, I still don't understand > fully how PG knows if some needed data is in memory or in second > storage. > Does PG consider this? No. > When setting seq_page_cost and random_page_cost, do I have to > consider the probability that data will be in memory? Yes. -Kevin