Restart the apply worker if the privileges have been revoked.
Amit Kapila <akapila@postgresql.org>
Restart the apply worker if the privileges have been revoked. Restart the apply worker if the subscription owner's superuser privileges have been revoked. This is required so that the subscription connection string gets revalidated and use the password option to connect to the publisher for non-superusers, if required. Author: Vignesh C Reviewed-by: Amit Kapila Discussion: http://postgr.es/m/CALDaNm2Dxmhq08nr4P6G+24QvdBo_GAVyZ_Q1TcGYK+8NHs9xw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/pg_subscription.c | modified | +3 −0 |
| src/backend/commands/subscriptioncmds.c | modified | +2 −2 |
| src/backend/replication/logical/tablesync.c | modified | +2 −4 |
| src/backend/replication/logical/worker.c | modified | +28 −5 |
| src/include/catalog/pg_subscription.h | modified | +1 −0 |
| src/test/subscription/t/027_nosuperuser.pl | modified | +24 −0 |
Discussion
- Invalidate the subscription worker in cases where a user loses their superuser status 29 messages · 2023-09-22 → 2024-01-13