Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfuvT-0008MP-9c for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2015 18:42:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YfuvS-00010P-Hh for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2015 18:42:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfuvQ-00010G-Jy for pgsql-bugs@postgresql.org; Wed, 08 Apr 2015 18:42:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfuvK-0004ik-Uw for pgsql-bugs@postgresql.org; Wed, 08 Apr 2015 18:42:07 +0000 MIME-Version: 1.0 Subject: BUG #13002: VACUUM to prevent wraparound blocks TRUNCATE To: pgsql-bugs@postgresql.org From: maciek@heroku.com Date: Wed, 08 Apr 2015 18:41:55 +0000 Message-ID: <20150408184155.26383.16053@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 13002 Logged by: Maciek Sakrejda Email address: maciek@heroku.com PostgreSQL version: 9.3.6 Operating system: Ubuntu 14.04 Description: If autovacuum is running a VACUUM to prevent wraparound on a certain table, it looks like it blocks TRUNCATE of that table, which would obviate the need for the VACUUM in the first place (and could happen much more quickly). This seems like a usability wart at best--one has to instead kill the autovacuum (e.g., via pg_cancel_backend) and then TRUNCATE. This is especially inconvenient when the user trying to truncate does not have permission to kill (or even see!) the wraparound VACUUM. Would it be possible to have autovacuum yield to a TRUNCATE in this situation? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs