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 1irUlO-0001Mu-0v for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2020 22:34:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1irUlM-0006c0-BT for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2020 22:34:16 +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 1irUlL-0006Ym-4s for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2020 22:34:16 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irUlG-0001TT-Kc for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2020 22:34:14 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 471D55B1; Tue, 14 Jan 2020 17:34:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 14 Jan 2020 17:34:07 -0500 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=fm1; bh=A kuoWiW2J4wcCfXjVefv0ReTyPotIs7yTB6OdowTBnQ=; b=yam5PoOQONvDc5jRM 2xAxlsSFQYPNsmeM376N7Ah8xSX8xvbNDOnvTz5mlBYhVHAdwMxQyPXpQEIdzgjV ot/UgGeNpB80ONpgcS/J4RpLv1DZpz+nmlOkoIuNnIIbJSFlQ3Krd32hcPW41wEd vGb/lT8V41pRC161NOyPs7F2xOilQiLfD6mTrpqZO43VLaQyMvJ/RgMAedN2Zb/E GqRXe5scUUhgZhcVehAkfH9q0u0O3FxFldM00tTUQPuhbZTzkJm4IJ8c68NkknPe 3OEW8KBgH2r61yYW+pzQ/JgLLXZ92vbtKM6BfEMk7HTBpvhmPWxkHahlTyYkEtI1 VQdiw== 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=fm1; bh=AkuoWiW2J4wcCfXjVefv0ReTyPotIs7yTB6OdowTB nQ=; b=wAP+k2LauUrVclHWfGOwCZKZ6X+Ot2+37k7FxCiW+u0jVyNVtlpPT7Yux aMmu+FL97sEeBKqdFmGKQZ1vv7Yv8pe4EocMOEU5vC4FObxNs6+Cuof1q2mPM0Ha 6ilMuvlICFZJsx/fMinwk3f2ZTy1fNlWB5QU3rtlbrbpOin0rM6T8C4GzCg+YJhl rmAaZ2A6ebZX/JtLU1JmRXn2bd4eg3sWqkbisCOukAwHHq2vUBYe+7uPWDQHMLid j+a2MTlMwEGwLVmlMjSdEmkiYZi9R30dTZSh0Z8jD3DAfQ5Fui7xnQQoZgMl4S6L LMo8vDCUBGBBMTyU/O2KIaeRfW1Eg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrtddvucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhirghnucfm lhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenuc ffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejuddrvdduvddruddv ledrudelfeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id D2FCC8006A; Tue, 14 Jan 2020 17:34:05 -0500 (EST) Subject: Re: Fwd: Postgresql Data corruption To: Tulqin Navruzov , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <156c0845-c365-b0eb-88ac-59f72c36b697@aklaver.com> Date: Tue, 14 Jan 2020 14:34:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.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 1/14/20 12:44 PM, Tulqin Navruzov wrote: > > > Hi team > > Could you help us to sort this out please? > > We had some hardware problems with Datacenter and could not using > postgresql from restored snapshots it showing "Structure needs to be > cleaning " during startup > , on centos7 did xfs_repair and postgresql started successfully. But > could not select datas from it . showing below message . > > This is when want to login to db with postgres user . > psql: PANIC:  could not open critical system index 2662 > > but can logged in with another user and trying to select from some > tables , showing this message : > > ERROR:  catalog is missing 11 attribute(s) for relid 113971 > > Could you help us to solve this problem? or could you give contact who > can help with this? Do you have space to back up the $DATADIR or do you have a recent backup? Asking because that would be helpful before you try the below. I would take a look at: https://www.postgresql.org/docs/12/sql-reindex.html In section: Notes ... Things are more difficult if you need to recover from corruption of an index on a system table. ... For more information on single-user mode: https://www.postgresql.org/docs/12/app-postgres.html#APP-POSTGRES-SINGLE-USER > > Thanks in advance. -- Adrian Klaver adrian.klaver@aklaver.com