pgAdmin 4 ver. 1.5 - no error messages

早过忘川 提交于 2019-12-04 02:52:59

问题


I use pgAdmin 4 ver. 1.5. When I run an SQL query that has some issues (e.g. a column or a table does not exist) I can only see a message saying "Query returned successfully" but I cannot see any error message.

pgAdmin III 1.22.2

However, pgAdmin III shows clearly SQL error messages in the same situation. Is there any option in pgAdmin 4 to turn the error messages on? Or it's just a bug?


回答1:


An issue is caused by non-English encoding.

I've experienced this issue within whole version 4 line. psql command line tool is affected too (spits out invalid chars complains instead of error messages).

Fix: open postgresql.conf file in your database directory. Find and comment out these lines, in my case had to wipe out Russian:

#lc_messages = 'Russian_Russia.1251'            # locale for system error message
                    # strings
#lc_monetary = 'Russian_Russia.1251'            # locale for monetary formatting
#lc_numeric = 'Russian_Russia.1251'         # locale for number formatting
#lc_time = 'Russian_Russia.1251'                # locale for time formatting

# default configuration for text search
#default_text_search_config = 'pg_catalog.russian'

If you still want to see localized messages, you may want to try sqlectron app, it looks like to be nice backup tool for clumsy pgAdmin4.




回答2:


I simply install the latest 4.3 version into the root directory of pgadmin, fixed the problem.....




回答3:


This can be fixed by installing pgAdmin language package if you're using Linux. At least for me this fixed the problem.




回答4:


The problem is solved by changing the below parameters from nonenglish langauge to english.

lc_messages = 'English_United States.1252'          
       # locale for system error message strings
lc_monetary = 'English_United States.1252'          
             # locale for monetary formatting
lc_numeric = 'English_United States.1252'           
           # locale for number formatting
lc_time = 'English_United States.1252'              
           # locale for time formatting


来源:https://stackoverflow.com/questions/44195177/pgadmin-4-ver-1-5-no-error-messages

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