Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WtzFO-0008M0-Dn for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 13:04:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WtzFN-0002PA-Kg for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 13:04:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WtzFK-0002Iq-UH for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 13:04:19 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WtzFD-0003n6-1j for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 13:04:16 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id EF5F2982D8; Mon, 9 Jun 2014 06:04:08 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id EB91B453A5; Mon, 9 Jun 2014 06:04:08 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id E886A12002A; Mon, 9 Jun 2014 06:04:20 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 9 Jun 2014 06:04:19 -0700 (PDT) Message-ID: <5395B0C6.2070000@vmware.com> Date: Mon, 09 Jun 2014 16:04:06 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Andres Freund CC: levertond@googlemail.com, pgsql-bugs@postgresql.org, Alvaro Herrera Subject: Re: BUG #10533: 9.4 beta1 assertion failure in autovacuum process References: <20140605180121.3061.28250@wrigleys.postgresql.org> <5390BA0F.2030103@vmware.com> <20140605213436.GA17217@awork2.anarazel.de> <20140609124616.GC3149@alap3.anarazel.de> In-Reply-To: <20140609124616.GC3149@alap3.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.6 (-------) 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 On 06/09/2014 03:46 PM, Andres Freund wrote: >> >I haven't thought particularly much about this, but I don't really see >> >why the heap_page_is_all_visible() bit needs to be in a critical >> >section? Can't we just do that entire bit after the log_heap_clean()? >> >Then the heap_page_is_all_visible() can be done outside a critical >> >section. > Before I start working on a patch along those lines, do you see any > problems with making the critical section smaller? One subtle difference is that the PD_ALL_VISIBLE flag will not be included in the full-page-image that log_heap_page() might take. But that seems OK. visibilitymap_set() writes a WAL record that sets it at replay. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs