Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3B1851337B82 for ; Mon, 28 Feb 2011 18:10:54 -0400 (AST) 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 69459-08; Mon, 28 Feb 2011 22:10:46 +0000 (UTC) X-Greylist: delayed 00:42:07.794592 by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from b.mail.sonic.net (b.mail.sonic.net [64.142.19.5]) by mail.postgresql.org (Postfix) with ESMTP id 8E6621337B8D; Mon, 28 Feb 2011 18:10:45 -0400 (AST) Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19]) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id p1SLSWdc017484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Feb 2011 13:28:32 -0800 Received: from bolt.sonic.net (IDENT:YkPjteT7Y+mxjk4zzve9rmbTd5CiiLrE@localhost.localdomain [127.0.0.1]) by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id p1SLSWDV021038; Mon, 28 Feb 2011 13:28:32 -0800 Received: (from daveg@localhost) by bolt.sonic.net (8.13.6/8.12.1/Submit) id p1SLSWWw021037; Mon, 28 Feb 2011 13:28:32 -0800 Date: Mon, 28 Feb 2011 13:28:32 -0800 From: daveg To: Heikki Linnakangas Cc: Maxim Boguk , Fujii Masao , pgsql-admin@postgresql.org, PostgreSQL-development Subject: Re: [HACKERS] Re: PD_ALL_VISIBLE flag was incorrectly set happend during repeatable vacuum Message-ID: <20110228212832.GH26397@sonic.net> References: <4D2D6A56.9060808@enterprisedb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D2D6A56.9060808@enterprisedb.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/230 X-Sequence-Number: 36869 On Wed, Jan 12, 2011 at 10:46:14AM +0200, Heikki Linnakangas wrote: > On 12.01.2011 06:21, Fujii Masao wrote: > >On Sat, Dec 25, 2010 at 2:09 PM, Maxim Boguk wrote: > >>While I trying create reproducible test case for BUG #5798 I > >>encountered very strange effect on two of my servers (both servers > >>have same hardware platform/OS (freebsd 7.2) and PostgreSQL 8.4.4). > >> > >>Very simple test table created as: > >>CREATE TABLE test (id integer); > >>INSERT INTO test select generate_series(0,10000); > >> > >>And I trying repeateble vacuum of that table with script: > >> perl -e "foreach (1..100000) {system \"psql -d test -h -c 'vacuum > >> test'\";}" > >> > >>And once per like an minute (really random intervals can be 5 minutes > >>without problems can be 3 vacuum in row show same error) I getting > >>next errors: > >>WARNING: PD_ALL_VISIBLE flag was incorrectly set in relation "test" page > >>1 > >>... > >>WARNING: PD_ALL_VISIBLE flag was incorrectly set in relation "test" > >>page 30 for all pages of the relation. > > Oh, interesting. This is the first time anyone can reliably reproducible > that. I can't reproduce that on my laptop with that script, though, so > I'm going to need your help to debug this. > > Can you compile PostgreSQL with the attached patch, and rerun the test? > It will dump the pages with incorrectly set flags to files in /tmp/, and > adds a bit more detail in the WARNING. Please run the test until you > get those warnings, and tar up the the created "/tmp/pageimage*" files, > and post them along with the warning generated. > > We'll likely need to go back and forth a few times with various > debugging patches until we get to the heart of this.. Anything new on this? I'm seeing at on one of my clients production boxes. Also, what is the significance, ie what is the risk or damage potential if this flag is set incorrectly? Thanks -dg -- David Gould daveg@sonic.net If simplicity worked, the world would be overrun with insects.