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 1fmni0-0006Kx-W1 for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Aug 2018 22:10:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fmnhy-0000Kg-R1 for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Aug 2018 22:10:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fmnhy-0000KZ-9X for pgsql-bugs@lists.postgresql.org; Mon, 06 Aug 2018 22:10:34 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fmnhq-000648-Rb for pgsql-bugs@lists.postgresql.org; Mon, 06 Aug 2018 22:10:33 +0000 Received: by mail-qt0-x244.google.com with SMTP id d4-v6so15685544qtn.13 for ; Mon, 06 Aug 2018 15:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=wYSeQXXh0my5F3GFF6n8dlS6XON4x5QFqaRLlF2hccs=; b=JcGquheqglmYrBW9PYjHlA2OC/jqRHJkpv6StgwC3f0ykgfyGrP+abYaMK8Atvj2mf 22Fg6bMiSGXGW5SUfYBRPNdU6gRljQkWaM1jb8KwRqjJGfg8zlwacpu94BdCqQPYr5Ap xnv3AY4JxRAM5RLULpwMWUwlgbmiZDVL7tXIDFRk4j8up4mP778hyHX+91CmjNYrxItc o+TAUyQQakc/8akT5yzSi0DYA8L2RJmvOUG+nWrdb/iRQeVIbPUIcg5vSZboyFeVrMjC 5AqqGtFsV8Pb4NikgzMmcc8MuOLMwN2tf+9BhTJOOElmxn3dGPX7E4cIxi3d+EbsP2HN nyqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=wYSeQXXh0my5F3GFF6n8dlS6XON4x5QFqaRLlF2hccs=; b=GAqQNAbGqnt/dEQ9fqZa6+HxC5nZnkMDxCN7cMl1rW8u0PcdKqHapRwZb1q5MSlvJJ nyy+NXdW093F883oB4Rr+dtsOJQYrtvRT0Hm9Gh9GzCBUx18L1U39Se2lPji/k3IBnHf yC9dyhqro70T/UdhsCwfC3Kn01DYQkM7OKs1oXrwTZ/8xTCWEbbAWFvEtPO8bc5isbXv BhsTM371Wlu0CI8m/nwmAdbzJ8Rgc963N1LOOje3+4X/Bn0pe2ZVKy6AicET9omG+FDq AJY3TIqY1QUP0G/2VkYvLVGKu6IOV9W0kyfRJHEi1BPj/AM9pn3K0IZJsJER2iSL9PP5 /0/A== X-Gm-Message-State: AOUpUlHV20Dq8m7Gy9xwwyGpiBqHEwz4mIQf8veHugqPpyyyK3Esqp8B I032x52NZsy8ue7BZBH/MLQ8cA== X-Google-Smtp-Source: AAOMgpd2PsB6v6VuHXTSIbDHhZwNp/1mfCqGbHGd7mkWgElojRuhs6pRypG1+QY7LHD31rbteIqhww== X-Received: by 2002:aed:24b0:: with SMTP id t45-v6mr16346953qtc.86.1533593425739; Mon, 06 Aug 2018 15:10:25 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([201.186.81.181]) by smtp.gmail.com with ESMTPSA id l44-v6sm10990718qtb.58.2018.08.06.15.10.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Aug 2018 15:10:24 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 1B0ECD9F; Mon, 6 Aug 2018 18:10:23 -0400 (-04) Date: Mon, 6 Aug 2018 18:10:23 -0400 From: Alvaro Herrera To: Peter Geoghegan Cc: Tom Lane , deathlock13@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #15309: ERROR: catalog is missing 1 attribute(s) for relid 760676 when max_parallel_maintenance_workers > 0 Message-ID: <20180806221023.63mes2onr2tumyoo@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Aug-06, Peter Geoghegan wrote: > On Mon, Aug 6, 2018 at 1:37 PM, Peter Geoghegan wrote: > > To be clear, I mean that the leader process's worker state has the > > right relfilenode (the leader process always participates as a > > worker), but all worker processes have the stale relfilenode. > > Sure enough, that's what the bug is - a few debugging calls to > RelationMapFilenodeToOid() within nbtsort.c proves it. Uh, that's weird, isn't it? I mean, why is the relfilenode changing underneath? Why isn't it blocked by the CREATE INDEX? Or is CREATE INDEX inflicting that upon itself? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services