Re: Index scan does not return all the data

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Index scan does not return all the data
Date: 2019-01-26 16:27:20
Message-ID: 8be4b59a-482f-0eff-b271-223cd8dba19a@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 1/26/19 9:33 AM, S. Bob wrote:
> Hi all;
>
>
> we have a client that has run into an issue, they have a PK on an id
> column and another unique index on the id and a timestamp. when we run a
> select it selects one of several indexes, in some cases a non unique index
> on a secondary ID, however when we do a pg_dump, or a CREATE TABLE x AS
> select * from this table then we get many many duplicates that violate the
> PK and the unique index.
>
> Thoughts?

Sounds like a corrupt index.  "REINDEX TABLE foo" and -- if not already --
update to the latest release of your version.

--
Angular momentum makes the world go 'round.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ibrahim Shaame 2019-01-27 16:46:59 Building pgadmin4 on Slackware
Previous Message S. Bob 2019-01-26 15:33:16 Index scan does not return all the data