Re: Add 'worker_type' to pg_stat_subscription

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Maxim Orlov <orlovmg@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Peter Smith <smithpb2250@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-09-15T16:35:38Z
Lists: pgsql-hackers

Attachments

On Thu, Sep 14, 2023 at 03:04:19PM -0700, Nathan Bossart wrote:
> The only reason I didn't apply this already is because IMHO we should
> adjust the worker types and the documentation for the view to be
> consistent.  For example, the docs say "leader apply worker" but the view
> just calls them "apply" workers.  The docs say "synchronization worker" but
> the view calls them "table synchronization" workers.  My first instinct is
> to call apply workers "leader apply" workers in the view, and to call table
> synchronization workers "table synchronization workers" in the docs.

Concretely, like this.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Commits

  1. Add worker type to pg_stat_subscription.

  2. Simplify determining logical replication worker types.