X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CEE2852815 for ; Sun, 17 Jul 2005 12:53:44 -0300 (ADT) 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 17648-01 for ; Sun, 17 Jul 2005 15:53:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A3E0552822 for ; Sun, 17 Jul 2005 12:53:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j6HFrRiF028089; Sun, 17 Jul 2005 11:53:27 -0400 (EDT) To: Tsirkin Evgeny Cc: Michael Fuhr , Tsirkin Evgeny , pgsql-admin@postgresql.org Subject: Re: caching table/query In-reply-to: <42DA7226.5070808@mail.jct.ac.il> References: <42DA3A4C.3080009@mail.jct.ac.il> <20050717140655.GA9637@winnie.fuhr.org> <42DA7226.5070808@mail.jct.ac.il> Comments: In-reply-to Tsirkin Evgeny message dated "Sun, 17 Jul 2005 17:58:46 +0300" Date: Sun, 17 Jul 2005 11:53:27 -0400 Message-ID: <28088.1121615607@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/115 X-Sequence-Number: 18171 Tsirkin Evgeny writes: > What i realy want is to say to postgres that the particular > table should be cached . Adopting the position that you are smarter than an automatic optimization algorithm is generally a good way to achieve less performance, not more. Especially so if you are willing to override the automatic algorithm on the strength of guesses that you make when you haven't even seen the system in operation yet. The truth of the matter is that you haven't got the foggiest idea yet where the system bottlenecks will be, and so you should certainly not be thinking about how to override the cache manager. If you've not heard the phrase "premature optimization is the root of all evil", I suggest you read up on it. It's generally good advice. regards, tom lane