X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 277FB474E44 for ; Wed, 5 Feb 2003 17:47:12 -0500 (EST) Received: from sj-msg-core-2.cisco.com (sj-msg-core-2.cisco.com [171.70.145.30]) by postgresql.org (Postfix) with ESMTP id 7CABA474E42 for ; Wed, 5 Feb 2003 17:47:11 -0500 (EST) Received: from mira-sjc5-e.cisco.com (IDENT:mirapoint@mira-sjc5-e.cisco.com [171.71.163.15]) by sj-msg-core-2.cisco.com (8.12.2/8.12.6) with ESMTP id h15Ml4sv028999; Wed, 5 Feb 2003 14:47:04 -0800 (PST) Received: from CJWHITEW2K2 (dhcp-128-107-146-255.cisco.com [128.107.146.255]) by mira-sjc5-e.cisco.com (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id ABD90468; Wed, 5 Feb 2003 14:47:12 -0800 (PST) Reply-To: From: "Chris White" To: "'Tom Lane'" Cc: Subject: Re: Duplicate indexes found in the postgres Database Date: Wed, 5 Feb 2003 14:47:11 -0800 Message-ID: <00df01c2cd68$85a06750$ff926b80@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/69 X-Sequence-Number: 7267 Tom, User was able to recreate the problem, but this time only on table got duplicated 'gui_config'. So here is the info you wanted: select ctid,xmin,xmax,oid,* from pg_class where relname = 'gui_config'; ctid | xmin | xmax | oid | relname | reltype | relowner | relam | relfilenode | relpages | reltuples | reltoastrelid | reltoastidxid | relhasindex | relisshared | relkind | relnatts | relchecks | reltriggers | relukeys | relfkeys | relrefs | relhasoids | relhaspkey | relhasrules | relhassubclass | relacl --------+------+------+-------+------------+---------+----------+-------+--- ----------+----------+-----------+---------------+---------------+---------- ---+-------------+---------+----------+-----------+-------------+----------+ ----------+---------+------------+------------+-------------+--------------- -+----------------------- (2,54) | 176 | 191 | 16560 | gui_config | 16561 | 101 | 0 | 16560 | 10 | 1000 | 0 | 0 | t | f | r | 2 | 0 | 0 | 0 | 0 | 0 | t | t | f | f | {=,aesop_gui=arwdRxt} (2,56) | 191 | 206 | 16560 | gui_config | 16561 | 101 | 0 | 16560 | 10 | 1000 | 0 | 0 | t | f | r | 2 | 0 | 0 | 0 | 0 | 0 | t | t | f | f | {=,aesop_gui=arwdRxt} (2 rows) -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Saturday, February 01, 2003 12:42 PM To: Chris White Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Duplicate indexes found in the postgres Database "Chris White" writes: > How do I look at the catalogs and which ones do I need to look at? Now that I look at it, pg_tables is not a join in 7.2, but just a straight select from pg_class. So the problem is definitely in pg_class. Let's see the results of select ctid,xmin,xmax,oid,* from pg_class where relname = 'vm_message'; and similarly for the other duplicates. > No we haven't seen any system crashes, but people have reported that the > tables that are duplicated are possibly missing some data. Hm. Trying to avoid theorizing in advance of the data... regards, tom lane