答案1
通过运行systemctl status postgresql*
我发现 lc 变量的值设置错误。我将它们更改为 en_US.UTF-8
lc_monetary = 'ar.UTF-8' # locale for monetary formatting
lc_numeric = 'ar.UTF-8' # locale for number formatting
lc_time = 'ar.UTF-8' # locale for time formatting
在文件中 /etc/postgresql/13/main/postgresql.conf
然后我systemctl restart postgresql*
跑
systemctl restart postgresql*