Cannot insert a duplicate key into unique index pg_calss_oid_index

From: charette(at)writeme(dot)com (Stephane Charette)
To: pgsql-general(at)postgresql(dot)org
Subject: Cannot insert a duplicate key into unique index pg_calss_oid_index
Date: 2003-01-31 22:48:16
Message-ID: 1be4bb40.0301311448.1d8b9824@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm running into a few database problems, and having a hard time
solving them. Version() tells me PostgreSQL 7.2.3 on
i686-pc-linux-gnu, compiled by GCC 2.95.2.

The problem: vacuum fails (returns 1) and logs "Cannot insert a
duplicate key into unique index pg_class_oid_index". This is on a new
installation, after a few reboots and a new database having been
created.

I followed the steps to start a standalone backend in the reference
guide under "REINDEX", but it doesn't seem to be working. This is
what I tried:

$ /usr/local/pgsql/bin/postgres -D /usr/local/stuff/data -O -P log
DEBUG: database system was shut down at 2003-01-31 22:10:57 GMT
DEBUG: checkpoint record is at 0/1AF664
DEBUG: redo record is at 0/1AF664; undo record is at 0/0; shutdown
TRUE
DEBUG: next transaction id: 196; next oid: 16632
DEBUG: database system is ready

POSTGRES backend interactive interface
$Revision: 1.245.2.3 $ $Date: 2002/09/30 20:47:22 $

backend> reindex database log force
NOTICE: relation 1247 was reindexed
NOTICE: relation 1249 was reindexed
ERROR: Cannot create unique index. Table contains non-unique values
backend>

What does this mean, and how do I fix it?

Thanks,

Stephane Charette
stephanecharette <nospam> AT telus <nospam> .net

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Luis Magaña 2003-01-31 23:13:30 Name of days and months
Previous Message Dmitry Tkach 2003-01-31 22:46:04 Re: very basic question