If you use a Postgres version < 17 the logical replication query fails since the `worker_type` column was added to `pg_stat_subscription` in Postgres 17.
If you use a Postgres version < 17 the logical replication query fails since the
worker_typecolumn was added topg_stat_subscriptionin Postgres 17.