From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: deathlock13@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>
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:18:05 -0400
Message-ID: <15154.1533593885@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-WzkkS6Dis3fGeSCZsDXv41tCT5pB_QwSzmV-DXMVrmpoow@mail.gmail.com>
References: <153329671686.1405.18298309097348420351@wrigleys.postgresql.org>
<11288.1533304389@sss.pgh.pa.us>
<CAH2-Wzk129bwcz9WY_veqigCSRB0m+6kgUiDeGB56xZPioOdqA@mail.gmail.com>
<CAH2-Wzn9eJMQYnxBmc4=VsGcK3tLk6Z1xO2s9nXhBRMBqHTJ3Q@mail.gmail.com>
<CAH2-WznJ4N61X9a9dgswjaJxrj=Kb8NZHCvsN+rdmi4DFiXmhw@mail.gmail.com>
<CAH2-Wzn=j0i8rxCAo6E=tBO9XuYXb8HbUsnW7J_StKON8dDOhQ@mail.gmail.com>
<13228.1533590989@sss.pgh.pa.us>
<CAH2-WzkkS6Dis3fGeSCZsDXv41tCT5pB_QwSzmV-DXMVrmpoow@mail.gmail.com>
Peter Geoghegan <pg@bowt.ie> writes:
> On Mon, Aug 6, 2018 at 2:29 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hm. Post-beta3, I think I'd vote for a conservative fix in v11,
>> which seems to be "ban for mapped catalogs". Feel free to make
>> it work in HEAD, though.
> Makes sense. I'm not sure if it's worth pursuing parallel mapped
> catalog index builds much further, though. I doubt that ordinary users
> care about whether or not this is supported, so this is a matter of
> principle. I don't feel strongly on whether or not I should make
> mapped builds work on HEAD, so I defer to you, and anyone else that
> might have an interest. Does it matter, do you think?
Apparently there are people out there with catalogs big enough
to justify parallel reindex. I don't mind if the first version of
the feature doesn't handle that, but probably we should make it work
eventually.
> It might be worth teaching heap_beginscan_parallel() to
> cross-check each worker's heap relation's rd_smgr.smgr_node to a version
> of the same field from the leader, stored in shared memory (in the
> ParallelHeapScanDesc). That way, any future recurrence of a similar
> bug will be far easier to detect. A "can't happen" error along these
> lines seems like it would be worthwhile.
Well, maybe, but why is that field particularly vulnerable? I'd think you
should crosscheck the index's relfilenode too, at least, if you're going
to worry about that.
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, pg@bowt.ie, robertmhaas@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: <15154.1533593885@sss.pgh.pa.us>
References: <153329671686.1405.18298309097348420351@wrigleys.postgresql.org> <11288.1533304389@sss.pgh.pa.us> <CAH2-Wzk129bwcz9WY_veqigCSRB0m+6kgUiDeGB56xZPioOdqA@mail.gmail.com> <CAH2-Wzn9eJMQYnxBmc4=VsGcK3tLk6Z1xO2s9nXhBRMBqHTJ3Q@mail.gmail.com> <CAH2-WznJ4N61X9a9dgswjaJxrj=Kb8NZHCvsN+rdmi4DFiXmhw@mail.gmail.com> <CAH2-Wzn=j0i8rxCAo6E=tBO9XuYXb8HbUsnW7J_StKON8dDOhQ@mail.gmail.com> <13228.1533590989@sss.pgh.pa.us> <CAH2-WzkkS6Dis3fGeSCZsDXv41tCT5pB_QwSzmV-DXMVrmpoow@mail.gmail.com> <15154.1533593885@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