Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8FB531337BF3 for ; Mon, 28 Mar 2011 01:29:34 -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 37383-05 for ; Mon, 28 Mar 2011 04:29:16 +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 4DB051337BE1 for ; Mon, 28 Mar 2011 01:29:16 -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 p2S4TCNb018899; Mon, 28 Mar 2011 00:29:12 -0400 (EDT) To: Robert Haas cc: Greg Stark , 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> <16028.1301086103@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 28 Mar 2011 00:25:05 -0400" Date: Mon, 28 Mar 2011 00:29:12 -0400 Message-ID: <18898.1301286552@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/356 X-Sequence-Number: 29866 Robert Haas writes: > I think we've had a number of pieces of evidence that suggest that > extending 8kB at a time is too costly, but I agree with Greg that the > idea of extending an arbitrarily large table by 10% at a time is > pretty frightening - that could involve allocating a gigantic amount > of space on a big table. I would be inclined to do something like > extend by 10% of table or 1MB, whichever is smaller. Sure, something like that sounds sane, though the precise numbers need some validation. > ... And a 1MB extension is probably also small enough > that we can do it in the foreground without too much of a hiccup. Less than convinced about this. regards, tom lane