Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4D17EB5DBC8 for ; Mon, 19 Sep 2011 10:06:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 92391-02 for ; Mon, 19 Sep 2011 13:06:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id 2D2BEB5DBC4 for ; Mon, 19 Sep 2011 10:06:13 -0300 (ADT) Received: by bkbzt4 with SMTP id zt4so5273624bkb.19 for ; Mon, 19 Sep 2011 06:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vR4CIEBMU9DdV6dUXXOnpUjzj0rXfjejNd9nprnMVLg=; b=firGr1mpo4WwWfqtL0lYrnw3FuQ6APJAeKfpdNbTd+YIa47V+5BV+8Srud7qmESElv F6vIIhG7yDFAK9k8H2ukXYh9Wrqm/knWI8BU1LpUH/pw6p+3oqnAvMdqHTdCPgPT3DTW g3eGFCGAZalyAr+kig/lg8wQ4oJJjqXxOYtFs= Received: by 10.204.138.200 with SMTP id b8mr1600114bku.0.1316437573704; Mon, 19 Sep 2011 06:06:13 -0700 (PDT) Received: from [10.64.1.26] ([94.45.140.16]) by mx.google.com with ESMTPS id v16sm14064302bkd.6.2011.09.19.06.06.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Sep 2011 06:06:12 -0700 (PDT) Message-ID: <4E773E42.9000202@gmail.com> Date: Mon, 19 Sep 2011 16:06:10 +0300 From: Vitalii Tymchyshyn User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: =?UTF-8?B?Q8OpZHJpYyBWaWxsZW1haW4=?= CC: Stefan Keller , pgsql-performance@postgresql.org, Tomas Vondra Subject: Re: PostgreSQL-related topics of theses and seminary works sought (Was: Hash index use presently(?) discouraged...) References: <4E770D59.3090906@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.799 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201109/266 X-Sequence-Number: 45042 Hello. I did read and AFAIR sometimes responded on this long discussions. The main point for me is that many DBAs dont want to have even more random plans with postgresql knowing what's in memory now and using this information directly in runtime. I also think this point is valid. What I would like to have is to force some relations to be in memory by giving them fixed part of shared buffers and to tell postgresql they are in memory (lowering page costs) to have fixed optimal plans. Best regards, Vitalii Tymchyshyn. 19.09.11 14:57, Cédric Villemain написав(ла): > 2011/9/19 Vitalii Tymchyshyn: >> 17.09.11 23:01, Stefan Keller написав(ла): >>> * more... ? >> What I miss from my DB2 UDB days are buffer pools. In PostgreSQL terms this >> would be part of shared buffers dedicated to a relation or a set of >> relations. When you have a big DB (not fitting in memory) you also usually >> want some small tables/indexes be in memory, no matter what other load DB >> has. >> Complimentary features are: >> 1) Relations preloading at startup - ensure this relation are in memory. > you can use pgfincore extension to achieve that, for the OS cache. It > does not look interesting to do that for shared_buffers of postgresql > (the subject has been discussed and can be discussed again, please > check mailling list archieve first) > >> 2) Per buffer pool (or relation) page costs - tell it that this >> indexes/tables ARE in memory > you can use tablespace parameters (*_cost) for that, it has been > rejected for tables in the past. > I did propose something to start to work in this direction. > See "[WIP] cache estimates, cache access cost" in postgresql-hackers > mailling list. > > This proposal let inform the planner of the table memory usage and > take that into account.