Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLkAJ-0000l8-0Y for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 10:41:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLkAH-00058b-Ti for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 10:41:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLkAH-00058S-KY for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 10:41:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLkAF-0007kx-L0 for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 10:41:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 182Afhpo2241620; Thu, 2 Sep 2021 06:41:43 -0400 From: Tom Lane To: Laurenz Albe cc: Alexander Kass , pgsql-general@lists.postgresql.org Subject: Re: No xmin in pg_database In-reply-to: <0cea1cb2929da04dc46a2fb198a7b54dc260cc17.camel@cybertec.at> References: <0cea1cb2929da04dc46a2fb198a7b54dc260cc17.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Thu, 02 Sep 2021 10:53:06 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2241618.1630579303.1@sss.pgh.pa.us> Date: Thu, 02 Sep 2021 06:41:43 -0400 Message-ID: <2241619.1630579303@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Thu, 2021-09-02 at 08:50 +0300, Alexander Kass wrote: >> We have a small number of users that do not have xmin in pg_database >> (we've asked them to try `select xmin from pg_database` and got >> `column xmin does not exist`). > All PostgreSQL tables have "xmin", and all catalog tables do as well. Indeed. This seems to be evidence of corruption in the pg_attribute catalog. If you're really lucky, reindexing pg_attribute might fix it, though I wonder what other problems there are. (It's odd though that identical corruption would happen to different installations.) regards, tom lane