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 1hGlKT-0001wf-3F for pgsql-general@arkaria.postgresql.org; Wed, 17 Apr 2019 14:14:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGlKQ-00032b-9y for pgsql-general@arkaria.postgresql.org; Wed, 17 Apr 2019 14:14:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGlKP-00032U-Vg for pgsql-general@lists.postgresql.org; Wed, 17 Apr 2019 14:14:22 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGlKN-0006Kd-Sw for pgsql-general@lists.postgresql.org; Wed, 17 Apr 2019 14:14:21 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9A8CE21B5A; Wed, 17 Apr 2019 10:14:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 17 Apr 2019 10:14:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=x ku/pBgi6RETN6Xsi7ld64HYcgyc0MXktyqNqqrsTA4=; b=XbW2mkaZOEVIHi1f2 yfFAAgPKw/wVdUOj1qpKx/sOBtEZyq+CgRULW4DVcb2Xm9NfVx8mUp5HjyiwoTLn ZQ03Xd7eLo1m+AUKB1awSdIHZkPM36yWoJiQhaACrumyX4aodLZ7vpWTX2cH5tIt iGqNqIgh/wtPh0gIXBPa5AWbJxtNUGezR2v+fR9Z3ivjZy63icrQ1wPIU/TrbLgC Mbl5yQL1jIxD7X3nCBVS65r86a57Yw/Vb271goGNMvaSzP8M0679WfK81U4PA4PP c7YQJKgoZUyVA9NcW7xm/tDmhfgWGI73+afHsM32Dm/K7enxLImFN24rRtNeOdeE LZC8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=xku/pBgi6RETN6Xsi7ld64HYcgyc0MXktyqNqqrsT A4=; b=XnxjIPtGBG0k41bRPvb+Ha4AMvzJVUN1p56XdFbXS5xrzl0gwyfrwxTIv pT17ES2RHxMsk/zY++Q/TYAGpjBcRGNpkpXrrATV7Gt4LT6t1RtcoF4uGBKDUxUT obegf61GbkyzqbexniowWHn6nfTndv+Vb61YcmtlaDDz22LvhlbXn9tT2DUawoi4 QVRkxJI4ZgG6kFYbOidhKmCQXWlY1rhiBr+s83lxw6UGs9syIci+Frjt/SDLLDoV yiwKlyKyCjKPqArXsvd5kvDuevISiHAJABaAZfUhgHLcRgiR2/5LNBYT2IpEYcO0 rI9xHYid2A+lGoEmtvQy9eJxpKgsQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfeefgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A8E8100E5; Wed, 17 Apr 2019 10:14:17 -0400 (EDT) Subject: Re: Possible corrupt index? To: Zahir Lalani , Michael Lewis Cc: "pgsql-general@lists.postgresql.org" References: <3275482c-4638-6f22-d480-bbc8fe6b9d2c@aklaver.com> From: Adrian Klaver Message-ID: <88f2b050-a02a-4ddf-7826-0cb311af0677@aklaver.com> Date: Wed, 17 Apr 2019 07:14:16 -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=utf-8; 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/17/19 12:42 AM, Zahir Lalani wrote: >> I am not following above. >> What is running version 10? > > Production is 9.6, others are 10 (as we are testing). Prod has always been fine, its been running for 2 years without a hitch. This issue has only occurred recently Any changes occur between the time it worked and the time it did not? Say a crash, change in schema, new data added and so on. Per below the version 10 servers use en_GB.UTF_8 and the production one en_US.UTF-8. Why the difference? And did the production used to be en_GB.UTF_8? Have you logged into the production instance using psql and tried the queries to see if they work? > >> Did you restore a dump from a version 10 onto a >version 9.6 machine? > > No - as I said, I don’t believe it’s a version issue as its been fine for 2 years. > >> >>> What does: >>> SHOW lc_collate; >> >> en_US.UTF-8 > >> The above is the same for all the servers? > > The upgraded 10 servers are en_GB.UTF_8. The current prod 9.6 is as above > > > Z > -- Adrian Klaver adrian.klaver@aklaver.com