From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: deathlock13@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15309: ERROR: catalog is missing 1 attribute(s) for relid 760676 when max_parallel_maintenance_workers > 0
Date: Mon, 06 Aug 2018 18:14:39 -0400
Message-ID: <14965.1533593679@sss.pgh.pa.us> (raw)
In-Reply-To: <20180806221023.63mes2onr2tumyoo@alvherre.pgsql>
References: <20180806221023.63mes2onr2tumyoo@alvherre.pgsql>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2018-Aug-06, Peter Geoghegan wrote:
>> 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?
Because we're building a brand new index in a new file.
> Why isn't it blocked by the CREATE INDEX? Or is CREATE
> INDEX inflicting that upon itself?
The problem is (or so I assume) failure to propagate process-local
state of relmapper.c into the worker processes. So the leader knows
that we've assigned a new relfilenode to some mapped index, but the
workers don't.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, pg@bowt.ie
Subject: Re: BUG #15309: ERROR: catalog is missing 1 attribute(s) for relid 760676 when max_parallel_maintenance_workers > 0
In-Reply-To: <14965.1533593679@sss.pgh.pa.us>
References: <20180806221023.63mes2onr2tumyoo@alvherre.pgsql> <14965.1533593679@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox