Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGRZ5-0004UU-4F for pgsql-general@arkaria.postgresql.org; Tue, 16 Apr 2019 17:08:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGRZ3-0001am-Nl for pgsql-general@arkaria.postgresql.org; Tue, 16 Apr 2019 17:08:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGRZ3-0001WI-8w for pgsql-general@lists.postgresql.org; Tue, 16 Apr 2019 17:08:09 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGRZ0-0001OE-Tl for pgsql-general@lists.postgresql.org; Tue, 16 Apr 2019 17:08:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 177022223C; Tue, 16 Apr 2019 13:08:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 16 Apr 2019 13:08:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=e ATlkviyF4Wxe+Wxc3rGLCiU22InpTYeDf6WuFVhtPY=; b=H7uJ+tvnX4wkvl8lV 8A31aNjoBYITE/1UPeacyeiYQTcklPVAhWI/JdFRe9UQowIuZu3mwFh/FTfQ4IpI vIVPmkRNFChqvMJkew5u/OLn9vfuM+/PBE9xPlhCqG7Cu2AIn22tvDqNaXVgcVWJ OP4upmiPC+RlDA9yLMZBW1jDHp4yVVDz9WufgqFiIsW5En1+iQOaSZEMAjzD4X1k 020zaDYMcfsL0QjljPlJ3fcs0JsFN4DBMN3/yHSTGkNJ6Lnlst+wRIJJoU6Zwcj3 6eYe9ZTNyppOQyWSUt9AlFOwMANkc/Y79eb+K8fvcgVP7MzmjFyi9H4AtdubBZ63 cYovQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=eATlkviyF4Wxe+Wxc3rGLCiU22InpTYeDf6WuFVht PY=; b=uLarBvQblmi1RC56+SFJ5yqclJeICaMtVWbFeK3aptxD+d9aDZXGIPfds oECQldJ5GRajX2MGhnZxkQBMsyy0nusntZHPIkN8T3xVZx7Y+WRKJg8Lg4Hvhc3q D/Agj97VsQ9L/GvJY7ysSHOBYC4YCIgTEkbmME2WVGPtXefEv/0l/fqYtW0noeuv S/K6B97mdUOSRdsALwXSKp39E9nju+ZeQV7UTntMQLsY8FX00+ZNK+Mp2MsDi2yc d8wAQ7Tu9Dbkf66LjhIClaVqjO6QcmPFRxSjGcrAwta5INjxNmU5hNfsoMZN6NDn Len8DhMdruTUN/yNxc7Q+F8pLfdzQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfedugdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjeegrdelgedrjeefrddvvddvnecurfgrrhgrmhepmhgrihhlfhhrohhm pegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrh fuihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 26A0E100E5; Tue, 16 Apr 2019 13:08:05 -0400 (EDT) Subject: Re: Possible corrupt index? To: Zahir Lalani , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: Date: Tue, 16 Apr 2019 10:08:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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