Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9w2u-0005zq-1J for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 15:02:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b9w2t-0006Fp-7q for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 15:02:27 +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 1b9w1W-0003TN-Kv for pgsql-hackers@postgresql.org; Mon, 06 Jun 2016 15:01:02 +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 1b9w1T-0003VU-M1 for pgsql-hackers@postgresql.org; Mon, 06 Jun 2016 15:01:02 +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 u56F0qko017050; Mon, 6 Jun 2016 11:00:52 -0400 From: Tom Lane To: Robert Haas cc: Alvaro Herrera , Masahiko Sawada , Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: Reviewing freeze map code In-reply-to: References: <20160606141815.GA387566@alvherre.pgsql> Comments: In-reply-to Robert Haas message dated "Mon, 06 Jun 2016 10:34:03 -0400" Date: Mon, 06 Jun 2016 11:00:52 -0400 Message-ID: <17049.1465225252@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 Robert Haas writes: > I'm intuitively sympathetic to the idea that we should have an option > for this, but I can't figure out in what case we'd actually tell > anyone to use it. It would be useful for the kinds of bugs listed > above to have VACUUM (rebuild_vm) to blow away the VM fork and rebuild > it, but that's different semantics than what we proposed for VACUUM > (even_frozen_pages). And I'd be sort of inclined to handle that case > by providing some other way to remove VM forks (like a new function in > the pg_visibilitymap contrib module, maybe?) and then just tell people > to run regular VACUUM afterwards, rather than putting the actual VM > fork removal into VACUUM. There's a lot to be said for that approach. If we do it, I'd be a bit inclined to offer an option to blow away the FSM as well. 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