Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 27E8C1337BD8 for ; Tue, 15 Mar 2011 03:04:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 41646-01-3 for ; Tue, 15 Mar 2011 06:04:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og101.obsmtp.com (exprod7og101.obsmtp.com [64.18.2.155]) by mail.postgresql.org (Postfix) with ESMTP id 53D881337C3A for ; Tue, 15 Mar 2011 03:03:49 -0300 (ADT) Received: from source ([209.85.215.52]) (using TLSv1) by exprod7ob101.postini.com ([64.18.6.12]) with SMTP ID DSNKTX8BRUFQMkoMdjseEV9qb7GZn+TIR6RS@postini.com; Mon, 14 Mar 2011 23:03:50 PDT Received: by ewy28 with SMTP id 28so62545ewy.25 for ; Mon, 14 Mar 2011 23:03:47 -0700 (PDT) Received: by 10.213.26.213 with SMTP id f21mr2658642ebc.70.1300169026309; Mon, 14 Mar 2011 23:03:46 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id w59sm6583187eeh.3.2011.03.14.23.03.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2011 23:03:45 -0700 (PDT) Message-ID: <4D7F013F.9010309@enterprisedb.com> Date: Tue, 15 Mar 2011 08:03:43 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: Lane Stevens CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5928: PD_ALL_VISIBLE flag incorrectly set warning messages References: <201103150001.p2F015v2060271@wwwmaster.postgresql.org> In-Reply-To: <201103150001.p2F015v2060271@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.2 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201103/216 X-Sequence-Number: 29726 On 15.03.2011 02:01, Lane Stevens wrote: > > The following bug has been logged online: > > Bug reference: 5928 > Logged by: Lane Stevens > Email address: lane@mobilsense.com > PostgreSQL version: 8.4.4 > Operating system: CentOS > Description: PD_ALL_VISIBLE flag incorrectly set warning messages > Details: > > A series of messages similar to the following were logged: > > pgsql.log:Mar 14 16:38:44 bo01 preprod[5462]: [2-1] eval25WARNING: > PD_ALL_VISIBLE flag was incorrectly set in relation "pg_statistic" page 45 > > This happened at least one other time on Jan 10 with the same version of the > database. So far I have been unable to replicate the error. > > Kernel is: 2.6.18-164.15.1.el5 > postgresql is: postgresql-8.4.4-2PGDG.el5 This is a known issue, fixed recently in the git repository. See: http://archives.postgresql.org/message-id/4D75E201.20402@enterprisedb.com and the fix: commit b42225c101e61afdc9b4f5873654bc1e0c9f9179 Author: Heikki Linnakangas Date: Tue Mar 8 20:13:52 2011 +0200 Don't throw a warning if vacuum sees PD_ALL_VISIBLE flag set on a page that contains newly-inserted tuples that according to our OldestXmin are not yet visible to everyone. The value returned by GetOldestXmin() is conservative, and it can move backwards on repeated calls, so if we see that contradiction between the PD_ALL_VISIBLE flag and status of tuples on the page, we have to assume it's because an earlier vacuum calculated a higher OldestXmin value, and all the tuples really are visible to everyone. We have received several reports of this bug, with the "PD_ALL_VISIBLE flag was incorrectly set in relation ..." warning appearing in logs. We were finally able to hunt it down with David Gould's help to run extra diagnostics in an environment where this happened frequently. Also reword the warning, per Robert Haas' suggestion, to not imply that the PD_ALL_VISIBLE flag is necessarily at fault, as it might also be a symptom of corruption on a tuple header. Backpatch to 8.4, where the PD_ALL_VISIBLE flag was introduced. This fix will be included in the next version (8.4.8). Assuming you're seeing the same issue, the warning is harmless and can be ignored. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com