Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DC30119F3CE for ; Mon, 11 Jun 2012 11:15:15 -0300 (ADT) Received: from smtp.optionshouse.com ([38.98.137.6] helo=smtp.peak6.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Se5Oe-0004pG-4s for pgsql-performance@postgresql.org; Mon, 11 Jun 2012 14:15:14 +0000 X-AuditID: 0a64cb1e-b7f856d00000287c-11-4fd5fd4fe221 Message-ID: <4FD5FD5C.5040203@optionshouse.com> Date: Mon, 11 Jun 2012 09:14:52 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Mark Thornton CC: Subject: Re: Performance of CLUSTER References: <4FD458CA.3070902@optrak.com> <4FD5F5DC.3080507@optionshouse.com> <4FD5F6B5.2090505@optrak.com> <4FD5F837.5080006@optionshouse.com> <4FD5FA6F.3080903@optrak.com> In-Reply-To: <4FD5FA6F.3080903@optrak.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.201.64] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPIsWRmVeSWpSXmKPExsXClcIrpuv/96q/wcUedYt1b5YwWVyfeY7Z gclj5aPjrB4X9k1jD2CKamC0SczLyy9JLElVSEktTrZV8i8oyczPK/bILy1OVXDJLE7OSczM TS1SUshMsVUyV1IoyElMTs1NzSuxVUosKEjNS1Gy41LAADZAZZl5Cql5yfkpmXnptkqewf66 FhamlrqGSnbxyCChkyVjwrFJrAUn2CsaZ05jbWBsYOti5OSQEDCR2DrlLZQtJnHh3nowm1dA X+LV9U1MIDaLgKrE2Wc32EFsNgFdiUn9K8BqhARUJPrO3gCr4RcQltj3oYkZxBYVCJE49+Q7 1BxBiZMzn7CA2CICGhJn3x4Fq2EWUJOY+3ASaxcjB4cw0Myu12pdjFxAI9cySjy7dgRsJqeA lsSmY6fYIOptJS7Muc4CYctLbH87hxniBlWJFc0Toe5XkPh/5R3TBEahWUhWz0LSPgtJ+wJG 5lWM4sVlickZmaYFxbklBYZ6BamJ2WZ6eaklmxjBkXtabgfj9KWKhxgFOBiVeHg3nL/qL8Sa WFZcmXuIUYKDWUmEd8MPoBBvSmJlVWpRfnxRaU5q8SFGU2CYTWSWEk3OByaVvJJ4Q2NDS1NL EzNLc2NjAyVx3l9rz/gLCaQDk0N2ampBahFMHxMHp1QDY86sOMGJ/t8fXFu6WPcmJ+u99O1f Vsz2zLR4sNpfvo/h28b4ep1TE/6c5wgQtNm0pOVllO2+U0djloucsK9t+8ZWMl1t7/Rn93YX hm+VmiNftt2VLeTCl4NKv+N+ab8QupYnrKhlr7xg0vyQS2kLz9aeiL3IMytVbIGp3taTlQxi d2vbXpks0FViKc5INNRiLipOBAAiBcGN8gIAAA== X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/64 X-Sequence-Number: 47090 On 06/11/2012 09:02 AM, Mark Thornton wrote: > I didn't think the process was using even the 500m it ought to have > had available, whereas creating an index did appear to use that much. > Note though that I didn't stay up all night watching it! You'd be surprised. If you look in your base/pgsql_tmp directory during a cluster of that table (make a copy of it if you don't want to interfere with a running system) you should see that directory fill with temporary structures, mostly during the index rebuild portions. It also wouldn't hurt to bootstrap system cache with the contents of that table. Do an explain analyze on SELECT * with no where clause and all of that table should be in memory. Oh, actually that reminds me... does your 10GB table fit into memory? If not, that might explain it right there. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-444-8534 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email