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

Disabling foreign keys on AWS RDS. #228

Closed
N-Putting opened this issue Oct 29, 2024 · 6 comments · Fixed by #252
Closed

Disabling foreign keys on AWS RDS. #228

N-Putting opened this issue Oct 29, 2024 · 6 comments · Fixed by #252
Assignees
Labels

Comments

@N-Putting
Copy link

As RDS does not support --disable-triggers is there any way to use set session_replication_role = replica; to disable it for each session? I tried it with a before and after data script but it won't work for jobs as it would need to run for each.

Here is an example how pgsync did it with another option. ankane/pgsync@88d17cd

@wwoytenko wwoytenko self-assigned this Oct 29, 2024
@wwoytenko
Copy link
Contributor

Hi! This will require a small code change, and I should be able to publish it this week. It looks like --disable-triggers might not be functioning correctly at the moment either. I’ll keep you posted.

@N-Putting
Copy link
Author

Any update on this?

@wwoytenko
Copy link
Contributor

@N-Putting
It is in progress. We aim to publish before new year.

@wwoytenko
Copy link
Contributor

@N-Putting
PR #252 contains feature request

@wwoytenko
Copy link
Contributor

#252 is merged

@wwoytenko
Copy link
Contributor

@N-Putting let me know if it solves your request. Thanks in advance

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

Successfully merging a pull request may close this issue.

2 participants