Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfwNO-00030J-NB for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2015 20:15:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YfwNO-00042i-5R for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2015 20:15:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfwNN-00042V-2S for pgsql-bugs@postgresql.org; Wed, 08 Apr 2015 20:15:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfwNK-0005Qo-55 for pgsql-bugs@postgresql.org; Wed, 08 Apr 2015 20:15:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t38KErmj014104; Wed, 8 Apr 2015 16:14:53 -0400 From: Tom Lane To: Jeff Janes cc: Alvaro Herrera , maciek@heroku.com, Pg Bugs Subject: Re: BUG #13002: VACUUM to prevent wraparound blocks TRUNCATE In-reply-to: References: <20150408184155.26383.16053@wrigleys.postgresql.org> <20150408192105.GV4369@alvh.no-ip.org> Comments: In-reply-to Jeff Janes message dated "Wed, 08 Apr 2015 12:53:11 -0700" Date: Wed, 08 Apr 2015 16:14:53 -0400 Message-ID: <14103.1428524093@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Janes writes: > Right now we declare it an emergency that some guy needs to change his oil, > shutdown half the traffic in the city during the "emergency", declare that > all the emergency vehicles responding to this emergency are only allowed to > move at 1/3 the speed limit, and make it illegal (or at least ineffective) > for anyone to change their oil calmly and preemptively. We could do without hyperbolic and wholly misleading analogies. (In this one, for example, you're omitting that the guy causing the problem is a couple years overdue to have changed his oil, and will blow a gasket and block the entire highway if he drives further.) Getting back to the case at hand, I don't think that making an exception for TRUNCATE would be a good idea even if there were no technical obstacles. It's perfectly possible for a TRUNCATE to be rolled back; so if the TRUNCATE were to kick an emergency autovac off the table lock and then fail, you would end up with no improvement in the situation at all. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs