pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Zahir Lalani <ZahirLalani@oliver.agency>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Possible corrupt index?
Date: Tue, 16 Apr 2019 10:08:04 -0700
Message-ID: <ea6a2955-f207-161f-42d9-e7f13aba8d31@aklaver.com> (raw)
In-Reply-To: <AM0PR06MB4004A8622A0B0ABF2355D771A7240@AM0PR06MB4004.eurprd06.prod.outlook.com>
References: <AM0PR06MB4004A8622A0B0ABF2355D771A7240@AM0PR06MB4004.eurprd06.prod.outlook.com>

On 4/16/19 10:02 AM, Zahir Lalani wrote:
> Hi All
> 
> New on this list!
> 
> We have an existing postgres deployment which is showing some odd 
> behaviour on Live. We use Navicat to manage it, and when we open a 

What does Live refer to?

> specific table via navicat on live, it says we don’t have a primary 
> index – although the design view does show it. We have auto deployment 
> scripts between environments, and none of the other environments show 
> this. Doing a structure dump shows that there is indeed a primary index:
> 
> CREATE TABLE "public"."briefs_master" (
> 
>    "id" int4 NOT NULL DEFAULT nextval('briefs_master_id_seq'::regclass),
> 
> …..
> 
> "ext_system_ref" varchar(255) COLLATE "pg_catalog"."default"
> 
> …..
> 
> ALTER TABLE "public"."briefs_master" ADD CONSTRAINT "briefs_master_pkey" 
> PRIMARY KEY ("id");
> 
> However, we are seeing very strange behaviour on live. We can search via 
> the ID field just fine. Searching on ext_system_ref returns no records.
> 
> If I manually add data to the ext field, it then queries correctly. But 
> as other records are added to the table, this field data disappears on 
> the row I manually edited.
> 
> We have run a reindex on the specific index as well as table. We have 
> run a vacuum on the table. Nothing seems to resolve and we are quite 
> confused as to what the issue could be. Any help and guidance would be 
> most appreciated
> 
> Regards
> 
> Zahir
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (11+ messages)  latest in thread

Message-ID: <ea6a2955-f207-161f-42d9-e7f13aba8d31@aklaver.com>
Permalink:  ../ea6a2955-f207-161f-42d9-e7f13aba8d31@aklaver.com/
Also on:    postgresql.org/message-id/ea6a2955-f207-161f-42d9-e7f13aba8d31@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ZahirLalani@oliver.agency
  Subject: Re: Possible corrupt index?
  In-Reply-To: <ea6a2955-f207-161f-42d9-e7f13aba8d31@aklaver.com>
  References: <AM0PR06MB4004A8622A0B0ABF2355D771A7240@AM0PR06MB4004.eurprd06.prod.outlook.com> <ea6a2955-f207-161f-42d9-e7f13aba8d31@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox