pgsql: Add new parallel message type to progress reporting. - Mailing list pgsql-committers

From Masahiko Sawada
Subject pgsql: Add new parallel message type to progress reporting.
Date
Msg-id E1qJ4Ay-002vIW-Oq@gemulon.postgresql.org
Whole thread Raw
List 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@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(+)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Add BEGIN/COMMIT for transactional messages during decoding.
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Report index vacuum progress.