Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AF0576324B6 for ; Wed, 4 Aug 2010 17:40:36 -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 17668-03 for ; Wed, 4 Aug 2010 20:40:28 +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 108AA6324AC for ; Wed, 4 Aug 2010 17:40:29 -0300 (ADT) Received: from [192.168.1.7] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LtDvX-1P54E84ABv-012b3w; Wed, 04 Aug 2010 22:40:16 +0200 Message-ID: <4C59D02E.7040908@2ndquadrant.com> Date: Wed, 04 Aug 2010 16:40:14 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Hannu Krosing CC: Tom Lane , Robert Haas , Peter Hussey , pgsql-performance Subject: Re: Questions on query planner, join types, and work_mem References: <18551.1280275502@sss.pgh.pa.us> <25534.1280498632@sss.pgh.pa.us> <1280819031.14579.38.camel@hvost> <1280944268.3735.12.camel@hvost> <22961.1280944836@sss.pgh.pa.us> <1280947287.3735.56.camel@hvost> <1280948634.3735.69.camel@hvost> <4C59BCA8.2060603@2ndquadrant.com> <1280951504.3735.93.camel@hvost> In-Reply-To: <1280951504.3735.93.camel@hvost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Oc7/eMQ7Rwo6kudrvvg0NHLgNF9hTjEf6prs4mkWZJs JhqhZsFfCVqaEZp3ovEfvP44T1Vp3jekTMzUukocAvpQmLKvvI UeOXfXmbyod9VkraLJINyS9nD0+HcvBTlcUphBDecbMbUJlBrO 47xKch11HAKciRNHtYVJnMAj3xoOvqlQ2n9bQWJQZExlX/IZX1 bL/Bnr8F0LDhcopxTIlVrKrIh7ZGXkPybV8vj7PmGQ= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/61 X-Sequence-Number: 39904 Hannu Krosing wrote: > Do you mean "written to disk", or written out from shared_buffers to > disk cache ? > The later turns into the former eventually, so both really. The kernel will do some amount of write combining for you if you're lucky. But not in all cases; it may decide to write something out to physical disk before the second write shows up. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us