Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fleLq-0007pE-Df for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Aug 2018 17:58:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fleLn-0001kb-U6 for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Aug 2018 17:58: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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fleLn-0001kU-O4 for pgsql-bugs@lists.postgresql.org; Fri, 03 Aug 2018 17:58:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fleLl-000308-4R for pgsql-bugs@lists.postgresql.org; Fri, 03 Aug 2018 17:58:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w73HwkC8026038; Fri, 3 Aug 2018 13:58:47 -0400 From: Tom Lane To: Peter Geoghegan cc: Andres Freund , PostgreSQL mailing lists , deathlock13@gmail.com Subject: Re: BUG #15309: ERROR: catalog is missing 1 attribute(s) for relid 760676 when max_parallel_maintenance_workers > 0 In-reply-to: References: <153329671686.1405.18298309097348420351@wrigleys.postgresql.org> <11288.1533304389@sss.pgh.pa.us> <766D3DC5-6651-4B3A-9C03-0D4C76A31F4D@anarazel.de> Comments: In-reply-to Peter Geoghegan message dated "Fri, 03 Aug 2018 10:29:54 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26036.1533319126.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 03 Aug 2018 13:58:46 -0400 Message-ID: <26037.1533319126@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Fri, Aug 3, 2018 at 10:11 AM, Andres Freund wrot= e: >> Maybe I'm missing something, but doesn't that error likely point to a b= ug in the new parallel index creation code, rather than the created indexe= s? > I've certainly seen error messages like that with cases of > catalog corruption. I recall repairing pg_attribute by hand when this > happened, and then having to reindex the system catalogs. > I don't really know what's wrong here, but I wouldn't be surprised if > amcheck detected a problem. Let's see. I think the OP's time would be more usefully spent on creating a submittable test case. We will want that whether or not amcheck complains, because the mere fact of the complaint is not likely to be enough to find the problem. (I do agree that this smells like a problem in parallel index build.) regards, tom lane