An amusing error was found in some postgres console utilities requesting keyboard input.
So pg_dump, for example, instead of the expected password request and the subsequent performance of my immediate duties, I immediately cursed FATAL and said that password authentication failed. Even in spite of the --password key, which forcibly requests a password. And since The same utility is used by pgAdmin, a similar curse sometimes arises there.
The error occurs under Windows and only if there is a folder “dev” located in the root of the current disk.
This yuniksovye roots postgres make themselves known. They (the roots) are trying to work with the terminal via / dev / tty, which of course is not in Windows. But if there is a / dev folder, utilities carefully create it after the first call.
')
It is treated simply - before starting the utility, erase the file / dev / tty
original lj