pg_restore could not execute query: ERROR: invalid locale name: “en_US.UTF-8”

时光怂恿深爱的人放手 提交于 2020-06-27 13:57:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!