pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: maciek@heroku.com
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13002: VACUUM to prevent wraparound blocks TRUNCATE
Date: Wed, 08 Apr 2015 16:14:53 -0400
Message-ID: <14103.1428524093@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMkU=1xRzbzGULnH-9Y1QiYf3uiqG9oyRN3AH7tsCx0odvdB=Q@mail.gmail.com>
References: <20150408184155.26383.16053@wrigleys.postgresql.org>
	<20150408192105.GV4369@alvh.no-ip.org>
	<CAMkU=1xRzbzGULnH-9Y1QiYf3uiqG9oyRN3AH7tsCx0odvdB=Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Jeff Janes <jeff.janes@gmail.com> 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



view thread (9+ messages)  latest in thread

Message-ID: <14103.1428524093@sss.pgh.pa.us>
Permalink:  ../14103.1428524093@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14103.1428524093@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeff.janes@gmail.com, alvherre@2ndquadrant.com, maciek@heroku.com
  Subject: Re: BUG #13002: VACUUM to prevent wraparound blocks TRUNCATE
  In-Reply-To: <14103.1428524093@sss.pgh.pa.us>
  References: <20150408184155.26383.16053@wrigleys.postgresql.org> <20150408192105.GV4369@alvh.no-ip.org> <CAMkU=1xRzbzGULnH-9Y1QiYf3uiqG9oyRN3AH7tsCx0odvdB=Q@mail.gmail.com> <14103.1428524093@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox