pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Initialize index stats during parallel VACUUM.
Date: Fri, 19 Aug 2022 00:38:57 +0000
Message-ID: <E1oOq2K-000Bqh-Mr@gemulon.postgresql.org> (raw)

Initialize index stats during parallel VACUUM.

Initialize shared memory allocated for index stats to avoid a hard
crash.  This was possible when parallel VACUUM became confused about the
current phase of index processing.

Oversight in commit 8e1fae1938, which refactored parallel VACUUM.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reported-By: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20220818133406.GL26426@telsasoft.com
Backpatch: 15-, the first version with the refactoring commit.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/662ba729a67e5c6e43efbc5263e1d2c3a72a8741

Modified Files
--------------
src/backend/commands/vacuumparallel.c | 1 +
1 file changed, 1 insertion(+)



view thread (2+ messages)  latest in thread

Message-ID: <E1oOq2K-000Bqh-Mr@gemulon.postgresql.org>
Permalink:  ../E1oOq2K-000Bqh-Mr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oOq2K-000Bqh-Mr@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Initialize index stats during parallel VACUUM.
  In-Reply-To: <E1oOq2K-000Bqh-Mr@gemulon.postgresql.org>
  References: <E1oOq2K-000Bqh-Mr@gemulon.postgresql.org>

* 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