@All
I, need to set up a logical replication in the Cloud SQL DB (PostgreSQL) to my DWH which is also an GCP managed PgSQL Cloud SQL instance but the source database has SSL configurations and needs to pass the certificates for creating the Subscription, to connect to the publication server, but the Cloud SQL doesn't let me grant the cloudsqlSuperUser permissions to the Postgres User and thus I am encountering errors during Subscription creation as only Superuser can take the certificates for connection to the source DB.
please provide any suggestions to create a logical replication.
Setting up logical replication with SSL connections in Google Cloud SQL for PostgreSQL requires careful consideration due to certain limitations and security implications. Here are some refined suggestions to help you create the replication:
Use the pglogical Extension:
Understand the Limitations of Superuser Roles:
Consider Alternative Authentication Methods:
Explore Third-Party Tools for Replication:
Additional Resources:
Security and Performance Considerations:
While setting up logical replication in Google Cloud SQL with SSL connections has its challenges, there are several approaches you can take. Each has its advantages and limitations, so it's important to choose the one that best fits your technical and security needs.
Sir, I am facing this error.
ERROR: Non-superusers cannot use certificate in the connection setting.certificate is not allowed
ERROR: certificate is not allowed
SQL state: 2F003
Detail: Non-superusers cannot use certificate in the connection setting.
while creating subscription from the Cloud SQL PostgreSQL instance
Here are some potential solutions to address this error:
Use the pglogical Extension:
Configure IAM Database Authentication:
Explore Alternative Replication Tools:
Contact Google Cloud Support: