Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhdOF-0003b5-Pg for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2016 13:59:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bhdOF-0002r7-C3 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2016 13:59:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhdMq-0008Go-Jy for pgsql-hackers@postgresql.org; Wed, 07 Sep 2016 13:58:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhdMo-0005OE-3T for pgsql-hackers@postgresql.org; Wed, 07 Sep 2016 13:58:19 +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 u87DwGew001671; Wed, 7 Sep 2016 09:58:16 -0400 From: Tom Lane To: Simon Riggs cc: Fujii Masao , PostgreSQL-development Subject: Re: [COMMITTERS] pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL In-reply-to: References: Comments: In-reply-to Simon Riggs message dated "Wed, 07 Sep 2016 13:50:49 +0100" Date: Wed, 07 Sep 2016 09:58:16 -0400 Message-ID: <1670.1473256696@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Simon Riggs writes: > On 7 September 2016 at 13:47, Fujii Masao wrote: >> On Tue, Sep 6, 2016 at 11:41 PM, Simon Riggs wrote: >>> lazy_truncate_heap() was waiting for >>> VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds >>> not milliseconds as originally intended. >> Don't we need to back-patch this? > If we do then a database-wide VACUUM on a busy database will take > substantially longer than it does now. On the other hand, it's also more likely to successfully perform desired truncations. > That may not be perceived as a "fix" by everybody, so we should not do > it without an explicit agreement by many. Agreed, but I vote with Fujii-san for back-patching. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers