pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add new parallel message type to progress reporting.
Date: Tue, 11 Jul 2023 03:36:32 +0000
Message-ID: <E1qJ4Ay-002vIW-Oq@gemulon.postgresql.org> (raw)

Add new parallel message type to progress reporting.

This commit adds a new type of parallel message 'P' to allow a
parallel worker to poke at a leader to update the progress.

Currently it supports only incremental progress reporting but it's
possible to allow for supporting of other backend progress APIs in the
future.

There are no users of this new message type as of this commit. That
will follow in future commits.

Idea from Andres Freund.

Author: Sami Imseih
Reviewed by: Michael Paquier, Masahiko Sawada
Discussion: https://www.postgresql.org/message-id/flat/5478DFCD-2333-401A-B2F0-0D186AB09228@amazon.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f1889729dd3ab0352dc0ccc2ffcc1b1901f8e39f

Modified Files
--------------
src/backend/access/transam/parallel.c         | 18 +++++++++++++++
src/backend/utils/activity/backend_progress.c | 32 +++++++++++++++++++++++++++
src/include/utils/backend_progress.h          |  1 +
3 files changed, 51 insertions(+)



Message-ID: <E1qJ4Ay-002vIW-Oq@gemulon.postgresql.org>
Permalink:  ../E1qJ4Ay-002vIW-Oq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qJ4Ay-002vIW-Oq@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add new parallel message type to progress reporting.
  In-Reply-To: <E1qJ4Ay-002vIW-Oq@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