X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CD64756462 for ; Sun, 20 Mar 2005 23:01:59 +0000 (GMT) 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 42693-03 for ; Sun, 20 Mar 2005 23:01:55 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8CDDA56454 for ; Sun, 20 Mar 2005 23:01:55 +0000 (GMT) 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 j2KN1nqr014173; Sun, 20 Mar 2005 18:01:49 -0500 (EST) To: "Stacy White" Cc: "Alvaro Herrera" , "PFC" , "Josh Berkus" , pgsql-performance@postgresql.org Subject: Re: What needs to be done for real Partitioning? In-reply-to: <002a01c52d87$543d1010$0200a8c0@grownups> References: <200503191202.38089.josh@agliodbs.com> <20050319225624.GA8467@dcc.uchile.cl> <3404.1111277153@sss.pgh.pa.us> <002a01c52d87$543d1010$0200a8c0@grownups> Comments: In-reply-to "Stacy White" message dated "Sun, 20 Mar 2005 11:59:29 -0800" Date: Sun, 20 Mar 2005 18:01:49 -0500 Message-ID: <14172.1111359709@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/393 X-Sequence-Number: 11098 "Stacy White" writes: > FWIW, we see large benefits from partitioning other than the ability to > easily drop data, for example: > - We can vacuum only the active portions of a table > - Postgres automatically keeps related records clustered together on disk, > which makes it more likely that the blocks used by common queries can be > found in cache > - The query engine uses full table scans on the relevant sections of data, > and quickly skips over the irrelevant sections > - 'CLUSTER'ing a single partition is likely to be significantly more > performant than clustering a large table Global indexes would seriously reduce the performance of both vacuum and cluster for a single partition, and if you want seq scans you don't need an index for that at all. So the above doesn't strike me as a strong argument for global indexes ... regards, tom lane