Skip to content

Fix some bugs with pipe on Windows #61

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

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

Anisimov-ds
Copy link
Contributor

In some cases on Windows, the process.communicate() function does not return any results.
For example, subprocess.Popen() runs "pg_ctl start" which starts "postgres". The process.communicate() function then waits for "postgres" to exit, not just "pg_ctl".
Using write to a temporary file instead of PIPE in execute_utility() works correctly.

@asavchkov asavchkov merged commit d9fba83 into postgrespro:master Feb 22, 2022
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