X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2E17411F66C3 for ; Wed, 29 Mar 2006 18:10:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44019-03 for ; Wed, 29 Mar 2006 18:10:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by postgresql.org (Postfix) with ESMTP id 9E28E11F6249 for ; Wed, 29 Mar 2006 18:10:05 -0400 (AST) Received: from [213.162.97.75] (helo=mail.metronet.co.uk) by ptb-relay03.plus.net with esmtp (Exim) id 1FOirX-0006i3-W8; Wed, 29 Mar 2006 23:10:00 +0100 Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C5A2F735C2; Wed, 29 Mar 2006 22:06:34 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id DF2CA15EA6; Wed, 29 Mar 2006 23:09:52 +0100 (BST) Message-ID: <442B05B0.5080507@archonet.com> Date: Wed, 29 Mar 2006 23:09:52 +0100 From: Richard Huxton User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Eric Lauzon Cc: pgsql-performance@postgresql.org Subject: Re: Database possible corruption , unsolvable mystery References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.124 required=5 tests=[AWL=0.124] X-Spam-Score: 0.124 X-Spam-Level: X-Archive-Number: 200603/589 X-Sequence-Number: 18026 Eric Lauzon wrote: > This is why our investigation brought us to the folowing questions: > > 1. Are postgresql data file name are hashed references to table > name(as oracle)? [~path to data EX:/var/log/pgsql/data/[arbitraty > numbers]/[datafile]]? OID numbers - look in the contrib directory/package for the oid2name utility. > 2. If the data files are corrupted and we re-create is it possible it > uses the same files thus creating the same issue? No > 3. Since we know that all the tables has that problems is there an > internal table with undisclosed references to tables data files? I > hope the questions were clear. You mean a system table that could account for your problems since it refers to some of your tables but not others? No. The obvious places to start are: 1. vacuum analyse verbose on the tables in question This should show whether there are a lot of "dead" rows 2. explain analyse on problem queries To see if the query plans are correct 3. SELECT * FROM pg_stat_??? Assuming you have statistics gathering turned on, this might show unusual table accesses. HTH -- Richard Huxton Archonet Ltd