Non-superuser subscriptions
Letting non-superusers create and own subscriptions safely: pg_create_subscription, password_required and run_as_owner. Introduced in PostgreSQL 16.
Versions
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 17 · worked-on · improved · moderate
- PostgreSQL 16 · shipped · improved · moderate · 9 commits · +1.2k / -366 lines
- PostgreSQL 15 · shipped · improved · moderate · 2 commits · +616 / -202 lines
Threads
- Non-superuser subscription owners
- [16+] subscription can end up in inconsistent state
- Invalidate the subscription worker in cases where a user loses their superuser status
- Fix minor memory leak in connection string validation
- pg_dump not dumping the run_as_owner setting from version 16?
- Questions about the new subscription parameter: password_required
- [16] ALTER SUBSCRIPTION ... SET (run_as_owner = ...) is a no-op
- Release notes wording about logical replication as table owner
- running logical replication as the subscription owner
- Comment typo in recent push
- Why does creating logical replication subscriptions require superuser?
- Special role for subscriptions