Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9E2561337B6E for ; Fri, 25 Mar 2011 17:48:45 -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 64227-07 for ; Fri, 25 Mar 2011 20:48:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7152B1337B49 for ; Fri, 25 Mar 2011 17:48:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p2PKmNlU016029; Fri, 25 Mar 2011 16:48:24 -0400 (EDT) To: Greg Stark cc: Alvaro Herrera , Christopher Browne , Maxim Boguk , pgsql-bugs Subject: Re: BUG #5946: Long exclusive lock taken by vacuum (not full) In-reply-to: References: <201103250856.p2P8ufGc004544@wwwmaster.postgresql.org> <4345.1301066239@sss.pgh.pa.us> <13556.1301069421@sss.pgh.pa.us> <1301080686-sup-7539@alvh.no-ip.org> <15329.1301082238@sss.pgh.pa.us> Comments: In-reply-to Greg Stark message dated "Fri, 25 Mar 2011 20:26:26 -0000" Date: Fri, 25 Mar 2011 16:48:23 -0400 Message-ID: <16028.1301086103@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/341 X-Sequence-Number: 29851 Greg Stark writes: > On Fri, Mar 25, 2011 at 7:43 PM, Tom Lane wrote: >> I don't recall any particular discussion of making the user contend with >> that.  My thought would be to do something like enlarging the table by >> 10% anytime we need to extend it. > Just for reference this is how Oracle *used* to behave. It was widely > hated and led to all sorts of problems. Best practice was to pick a > reasonable size for your tablespace and pre-allocate that size and set > future increments to be that size with 0% growth. Interesting, but I don't understand/believe your argument as to why this is a bad idea or fixed-size extents are better. It sounds to me just like the typical Oracle DBA compulsion to have a knob to twiddle. A self-adjusting enlargement behavior seems smarter all round. regards, tom lane