Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Azure #83

Open
AlicjaKucharczyk opened this issue Jan 3, 2024 · 3 comments
Open

Add support for Azure #83

AlicjaKucharczyk opened this issue Jan 3, 2024 · 3 comments

Comments

@AlicjaKucharczyk
Copy link

Hi, I was wondering if support for azure postgres (Flexible Server) could also be added?

@shayonj
Copy link
Owner

shayonj commented Jan 4, 2024

Interesting. Thanks for the issue. Have you been able to try pg_easy_replicate already and run into any errors? If so would love to see them. I am not much familiar with Azure's flexible server, pg_easy_replicate should work with almost all major postgres setups that supports the PG wire protocol.

@joetynan
Copy link
Contributor

joetynan commented Nov 6, 2024

I'm currently doing a replication between two Azure Postgres Flexible servers, and it appears to be working OK - 93 tables currently replicating and another 53 still having data copied. In this instance, just like with AWS and GCP, you have to use the --special-user flag, and ensure that the user accounts specified in the connection strings are members of the azure_pg_admin role on each server. Additionally, you will need to whitelist the server IP addresses on both boxes (so, source IP on target's whitelist, and vice versa). Make sure to increase the max_replication_slots parameter to some number greater than the number of tables you are replicating as well.

@joetynan
Copy link
Contributor

joetynan commented Jan 2, 2025

just FYI, this is also generally validated for migrations between AWS and Azure based PostgreSQL servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants