pgsql: Add new parallel message type to progress reporting.

From: Masahiko Sawada <msawada(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add new parallel message type to progress reporting.
Date: 2023-07-11 03:36:32
Message-ID: E1qJ4Ay-002vIW-Oq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)amazon(dot)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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2023-07-11 03:53:38 Re: pgsql: Report index vacuum progress.
Previous Message Amit Kapila 2023-07-11 03:03:15 pgsql: Add BEGIN/COMMIT for transactional messages during decoding.