Sample Header Ad - 728x90

pg_dump hangs in Git Bash but works in Windows command line

2 votes
2 answers
2091 views
I tried to make a backup of a database from Git Bash environment, but the executable does not output anything. If I specify the filename using the -f flag, a blank file gets created, so the executable obviously runs, but it does not do anything - there is no output or activity. Using the -v flag also does not make it produce any output. If I run pg_dump --help, I do get output though. When I do the same from a Windows command line, I am asked for a password and the dump proceeds fine. What is different about the Git Bash environment that pg_dump does not work there? Is there any workaround? I prefer to stay out of the Windows command line if at all possible.
Asked by JohnEye (193 rep)
Nov 3, 2021, 08:40 PM
Last activity: Nov 4, 2021, 10:57 AM