X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3927B8B9FE7 for ; Thu, 10 Feb 2005 17:46:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83284-05 for ; Thu, 10 Feb 2005 17:45:36 +0000 (GMT) Received: from candle.pha.pa.us (64-139-89-126-ubr04b-malvrn01-pa.hfc.comcastbusiness.net [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id B7A6F8B9EEB for ; Thu, 10 Feb 2005 17:45:36 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j1AHj6h11515; Thu, 10 Feb 2005 12:45:06 -0500 (EST) From: Bruce Momjian Message-Id: <200502101745.j1AHj6h11515@candle.pha.pa.us> Subject: Re: Column duplication with \d in psql In-Reply-To: To: Adam Witney Date: Thu, 10 Feb 2005 12:45:06 -0500 (EST) Cc: pgsql-admin X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/82 X-Sequence-Number: 16250 Adam Witney wrote: > > Something strange has just appeared in my database, can anyone explain this > duplication of columns: > > test=# \d plate_reporter > Table "plate_reporter" > Column | Type | Modifiers > -------------------+---------+-------------------------------------------- > plate_reporter_id | integer | not null, > plate_reporter_id | integer | not null, > plate_id | integer | not null > plate_id | integer | not null > well_address | text | not null > well_address | text | not null > reporter_id | integer | not null > reporter_id | integer | not null > dilution_factor | text | > dilution_factor | text | What version of PostgreSQL are you using? Old versions could get duplicates in some system tables. Do you have a two row for 'plate_reporter' in pg_class? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073