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 1irYof-0000tj-Jv for pgsql-general@arkaria.postgresql.org; Wed, 15 Jan 2020 02:53:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1irYod-0000Lf-JW for pgsql-general@arkaria.postgresql.org; Wed, 15 Jan 2020 02:53:55 +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 1irYod-0000LY-9Z for pgsql-general@lists.postgresql.org; Wed, 15 Jan 2020 02:53:55 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irYoa-0003u7-Jn for pgsql-general@lists.postgresql.org; Wed, 15 Jan 2020 02:53:54 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4EF5F21FE6; Tue, 14 Jan 2020 21:53:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 14 Jan 2020 21:53:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=uEYOIt5pYZ+0K5kStyPibz6tqyD mV9ir68y+vvlIeMc=; b=m0KWnwEG/5rbm/TCvUvNqAgeNkbHlvCGOJ4YsbVfGV8 V9XUPY5ZmffknQTTjHIxYVdCxJpMxVqehPrp2ppA67IAPeBnh+hUfhaU+cW+XShs wLzByNQnv2MVCGxOXu2Mb/KZBKYHCFyVX5rAJINouIayr6ZXB0wwtfI2ZHJmIuaJ Nt/9Rz5pBapZOuGdZLpskem4xA28HIzWswV54hKVUEOqhuCVBSjBiZv875mEzDTg Oee566Zn9hO78/zoQEjaiUlX3uA7kr5bxH1CBQQujURBNBsMUuCT81MLXATBvhL1 Mq5P0p9wVFISwDyqvea2Ah6nNDbufHKAAIuykPBTEjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=uEYOIt 5pYZ+0K5kStyPibz6tqyDmV9ir68y+vvlIeMc=; b=MsuC5002qixbCq3lt6EAM9 j5WT8psmsqr8DtI6plwL2LWll2Z5mlaoy8vGws/MtvKaGzUT6ONtfY8qj7IVSzbg TlsyOJ9Gjl5g1fnXen7rX5UAQObAijDUvdkcv0ZUvuPIEZcCZrqoEOOu6P3p+MqC MXXLeoCeC032jRiDyds9vg4b1U6sq0RYr73K5vdgQDpq8T23cf+v2zGqujhczXm7 Mpa1ZUkuti5xvAqQpNrd7RSFiRq5WQtdR2Po7CjsX/DgIszdP8hZPA9dkaaB4CQG i8ScvK1qBt//1v8qQSs6bCAnLM4wUoqfVvshasgxCpEjZKeP5eD5cZBm+RIo5FGA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrtddvgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddu necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfk phepudduuddruddtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 3579630602DB; Tue, 14 Jan 2020 21:53:44 -0500 (EST) Date: Wed, 15 Jan 2020 11:53:30 +0900 From: Michael Paquier To: Adrian Klaver Cc: Tulqin Navruzov , pgsql-general@lists.postgresql.org Subject: Re: Fwd: Postgresql Data corruption Message-ID: <20200115025330.GE2243@paquier.xyz> References: <156c0845-c365-b0eb-88ac-59f72c36b697@aklaver.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vs0rQTeTompTJjtd" Content-Disposition: inline In-Reply-To: <156c0845-c365-b0eb-88ac-59f72c36b697@aklaver.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --vs0rQTeTompTJjtd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 14, 2020 at 02:34:04PM -0800, Adrian Klaver wrote: > On 1/14/20 12:44 PM, Tulqin Navruzov wrote: >> but can logged in with another user and trying to select from some >> tables , showing this message : >>=20 >> ERROR: =A0catalog is missing 11 attribute(s) for relid 113971 >>=20 >> Could you help us to solve this=A0problem? or could you give contact who >> can help with=A0this? >=20 > Do you have space to back up the $DATADIR or do you have a recent backup? >=20 > Asking because that would be helpful before you try the below. >=20 > I would take a look at: > https://www.postgresql.org/docs/12/sql-reindex.html That's a bad data corruption pattern, and rolling in a backup is recommended (make sure that they are actually safe to use!). A REINDEX should help you to retrieve data and move it somewhere else if you don't have a backup, but nothing more as there is no guarantee that other parts of the system are not broken. As others have already pointed out, take the time necessary to read that: https://wiki.postgresql.org/wiki/Corruption But first, you should take three, slow, deep breaths. Rushing can only make things worse. -- Michael --vs0rQTeTompTJjtd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4efqoACgkQnvQgOdby QH0w8hAAgbiPSBms4z+XywW7HII3O5INubhnHViDYuzM4FuQ9Mz8rkO+R4fg1TUA 5Hch5aRnxAMTUGoe6f+Us9piraJNfS853pHkrwSCUGC+A47d2RmCQ2qzfVTbeTqs BybxnsD6GaaA9NOfiVZR4Z8NmrfDqrS828lG/cSNpV6zMj+S9adQOnpYgI5wKc0U 0YZBo4KAf3oOpB3HImYVc+QnUVxzla1SPnaJpdTheZn+DkVJh//yCh3JxH/prOKI XNqaIFzt7xykT/t7x3i/ev8jS84UOQOJJk6IaCrLuP7LOni4FrjsHWI4eTlClh+P rkI+40J9kwTLrtXhgC0TvB9FOjrCbWgYoxe3mdG25gTAns2wyN2ARGKAVv/w787+ YuCVN3CDV48UNOnXeTOceA5kEIYPeJfRF0as/w3Oi00Gk5U8o+O2RD8hGddv6zxm RPw3oj6lq/XC/2pI+5hnEFj1wc3gRWrX1VM8ZO/jGcVOqHX1EnhvytVT3Zlmgbrt +62FFdZ3tDmmGHKVw9iVMCgTph5K/1aAiDs0WoJo8cxEwOK2fUc85QfxxpPMY1z2 XzbM9N5ROo1daAdhtdGdx8gpRTVQpmy0bJkPoL59IpbaQ/3AXQosmhNWxBRWYm42 9k89HwTqi5KF+FhHgKzKJB/zZqJg90mg+dXMeiLL3bp5n6xa1ys= =YgFW -----END PGP SIGNATURE----- --vs0rQTeTompTJjtd--