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

Fix warnings from pg_dump being treated as fatal errors #13

Merged

Conversation

brody192
Copy link
Contributor

@brody192 brody192 commented Dec 9, 2023

Warnings from pg_dump are sent to stderr and the code treats everything in stderr as a fatal warning.
This PR fixes that by checking if the backup file is empty or not.

If there is text in stderr and the dump file is not empty, treat the text in stderr as a warning and continue the backup.

if there is text in stderr and the dump file is empty, treat that as a fatal error and halt the backup.

@coffee-cup coffee-cup merged commit f8c3678 into railwayapp-templates:main Jan 3, 2024
@brody192 brody192 deleted the fix-foreign-key-constraints branch March 8, 2024 03:04
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

Successfully merging this pull request may close these issues.

2 participants