查看数据表编码:
encoding
修改数据库编码:
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'your_database';
参考:https://www.cnblogs.com/Tommy-Yu/p/6409494.html