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 117B65E46E1 for ; Fri, 27 Aug 2004 15:19:37 -0300 (ADT) 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 05156-03 for ; Fri, 27 Aug 2004 18:19:31 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id EA0535E46F8 for ; Fri, 27 Aug 2004 15:19:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7RIJTHN001083; Fri, 27 Aug 2004 14:19:29 -0400 (EDT) To: Bruce Momjian Cc: Adi Alurkar , pgsql-performance@postgresql.org Subject: Re: Equivalent praxis to CLUSTERED INDEX? In-reply-to: <200408271748.i7RHmfJ15766@candle.pha.pa.us> References: <200408271748.i7RHmfJ15766@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 27 Aug 2004 13:48:41 -0400" Date: Fri, 27 Aug 2004 14:19:29 -0400 Message-ID: <1082.1093630769@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/398 X-Sequence-Number: 8034 Bruce Momjian writes: > Agreed. What I am wondering is with our system where every update gets > a new row, how would this help us? I know we try to keep an update on > the same row as the original, but is there any significant performance > benefit to doing that which would offset the compaction advantage? Because Oracle uses overwrite-in-place (undoing from an UNDO log on transaction abort), while we always write a whole new row, it would take much larger PCTFREE wastage to get a useful benefit in PG than it does in Oracle. That wastage translates directly into increased I/O costs, so I'm a bit dubious that we should assume there is a win to be had here just because Oracle offers the feature. regards, tom lane