Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8AFFC133655C for ; Mon, 4 Oct 2010 00:34:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 84529-01 for ; Mon, 4 Oct 2010 03:34:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id AD5211336473 for ; Mon, 4 Oct 2010 00:34:09 -0300 (ADT) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0ME295-1OxQbg3byx-00HMxg; Mon, 04 Oct 2010 05:34:08 +0200 Message-ID: <4CA94B2E.3080506@2ndquadrant.com> Date: Sun, 03 Oct 2010 23:34:06 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fabr=EDcio_dos_Anjos_Silva?= CC: pgsql-performance@postgresql.org Subject: Re: How does PG know if data is in memory? References: <4CA5D2F5.5070900@postnewspapers.com.au> <4CA59FCF02000025000362AE@gw.wicourts.gov> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:WY3nApoWUNilnQpJda2GTcN9DriuSGq4GZSCq6lZb6D 3K3zR5pNlukh1yf/sPCIKURlZUivZGIOJ4rNqp5tbjNYxLPvwS 1/0co+5GSopRDPININJScuVcG1ZU1Y/W4kFSwp23TTsbzWt4/Y DhxLwxiDDsvXqN4xQmZqtN6n+AmQwDmMz89S7iiIBInwq329ei P+mjmCMw92MFAyU306mZ7a/ZHS25JfcvRJ/4iVnAAA= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/22 X-Sequence-Number: 40441 Fabrício dos Anjos Silva wrote: > Is there any automated test tool? A can compile a list of real-world > queries, and provide an exact copy of my db server just for testing. > But how do I do it? Write a bunch of scripts? Is there any serious > tool that try different parameters, run a load test, process results > and generate reports? There's a list of tools for playing back a test workload at http://wiki.postgresql.org/wiki/Statement_Playback I'm not aware of anyone beyond some academic research that has taken that idea and built something to test many database parameter combinations. They did that at http://www.cs.duke.edu/~shivnath/papers/ituned.pdf but I don't think that code went public; I asked about it at one point and never heard anything really useful back. -- Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us Author, "PostgreSQL 9.0 High Performance" Pre-ordering at: https://www.packtpub.com/postgresql-9-0-high-performance/book