Re: Insert in table with UNIQUE index - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: Insert in table with UNIQUE index
Date
Msg-id A737B7A37273E048B164557ADEF4A58B537D9AF2@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Insert in table with UNIQUE index  (Artem Tomyuk <admin@leboutique.com>)
Responses Re: Insert in table with UNIQUE index
Re: Insert in table with UNIQUE index
List pgsql-admin
Artem Tomyuk wrote:
> I have a table with unique index with 2 exactly the same rows.
> How it can be possible?
> 
> 
> CREATE TABLE _inforgchngr6716_test
> (
>   _nodetref bytea NOT NULL,
>   _noderref bytea NOT NULL,
>   _messageno numeric(10,0)
> )
> WITH (
>   OIDS=FALSE
> );
> ALTER TABLE _inforgchngr6716_test
>   OWNER TO postgres;
> 
> -- Index: _inforg6716_bynodemsg_rn_test
> 
> -- DROP INDEX _inforg6716_bynodemsg_rn_test;
> 
> CREATE UNIQUE INDEX _inforg6716_bynodemsg_rn_test
>   ON _inforgchngr6716_test
>   USING btree
>   (_nodetref, _noderref, _messageno);

Maybe index corruption.
Did you have any crashes?

Do you get an error when you
   REINDEX INDEX _inforg6716_bynodemsg_rn_test;

Yours,
Laurenz Albe

pgsql-admin by date:

Previous
From: Artem Tomyuk
Date:
Subject: Insert in table with UNIQUE index
Next
From: Thorsten Schöning
Date:
Subject: Re: Per thread Connection memory