- Xata Onboarding Guide
- AWS Onboarding Guide
- Google Cloud (CloudSQL) Onboarding Guide
- Neon Onboarding Guide
Privileges Matrix
ℹ️ Terminology:
pgstreamsource→ user defined in the pgstream source URLpgstreamtarget→ user defined in the pgstream target URL
Security note: DDL replication and the target role
When DDL replication is enabled, DDL statements captured on the source are replayed on the target using thepgstreamtarget role. pgstream assumes the source and target are within the same trust domain.
If roles that can run DDL on the source are less trusted than pgstreamtarget, they can cause SQL to run on the target with the target role’s privileges. To limit the impact:
- Grant
pgstreamtargetonly the privileges it needs to apply schema and data changes. AvoidSUPERUSER,CREATEROLE, andCREATEDBunless a feature explicitly requires them. - If your source and target roles have different trust levels, disable DDL replication (see
ignore_ddl).