Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9uxy-000158-8Z for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 13:53:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b9uxx-0007O3-RU for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 13:53:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b9uxx-0007Nn-5U for pgsql-hackers@postgresql.org; Mon, 06 Jun 2016 13:53:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b9uxt-0001yB-FJ for pgsql-hackers@postgresql.org; Mon, 06 Jun 2016 13:53:16 +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 u56Dr8TW005403; Mon, 6 Jun 2016 09:53:08 -0400 From: Tom Lane To: Masahiko Sawada cc: Robert Haas , Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: Reviewing freeze map code In-reply-to: References: <20160502214818.psk3lmgyihk6gr3k@alap3.anarazel.de> <20160505000840.epatoq6d2e556446@alap3.anarazel.de> Comments: In-reply-to Masahiko Sawada message dated "Mon, 06 Jun 2016 17:44:09 +0900" Date: Mon, 06 Jun 2016 09:53:08 -0400 Message-ID: <5402.1465221188@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Masahiko Sawada writes: > On Sat, Jun 4, 2016 at 1:46 PM, Masahiko Sawada wrote: >> So other idea is to have GUC parameter, vacuum_even_frozen_page for example. >> If this parameter is set true (false by default), we do vacuum whole >> table forcibly and re-generate visibility map. >> The advantage of this idea is that we don't necessary to expand VACUUM >> syntax and relatively easily can remove this parameter if it's not >> necessary anymore. > Attached is a sample patch that controls full page vacuum by new GUC parameter. I find this approach fairly ugly ... it's randomly inconsistent with other VACUUM parameters for no very defensible reason. Taking out GUCs is not easier than taking out statement parameters; you risk breaking applications either way. 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