问题
I use pg_restore on Windows 10 with a dump file made on Linux.
I search on the web but I don't find answer.
[NEW] : I install Ubuntu on my computer to use pg_restore but when I send
pg_restore -d mydatabase /home/user/Documents/dumpfile.dump
the command line is blocked.
Someone has this issue ?
回答1:
You will need to do some research on locales. The place to start is the documentation.
Postgres relies on the operating system for locale information. The names differ between Posix and Windows. Presumably, the simplest solution is to change the name somehow. There might be a way to get Windows to understand the Posix names.
来源:https://stackoverflow.com/questions/42041253/pg-restore-could-not-execute-query-error-invalid-locale-name-en-us-utf-8