我在 Debian 操作系统上使用 pgAdmin 4。大约一个月前它运行良好,但今天它的 SQL 查询工具给出了一个神秘的错误消息:'table_oid'。右键单击菜单中的“查看/编辑数据”选项可以正常工作,也可以从 psql 命令行运行查询。我尝试断开服务器连接并重新启动它无济于事
pgadmin4.log 文件多次出现此错误语句:
2019-07-26 16:12:17,304: ERROR pgadmin: 'table_oid'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/__init__.py", line 432, in poll
trans_obj.check_updatable_results_pkeys()
File "/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/command.py", line 899, in check_updatable_results_pkeys
is_query_resultset_updatable(conn, sql_path)
File "/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/utils/is_query_resultset_updatable.py", line 38, in is_query_resultset_updatable
table_oid = _check_single_table(columns_info)
File "/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/utils/is_query_resultset_updatable.py", line 61, in _check_single_table
table_oid = columns_info[0]['table_oid'] …Run Code Online (Sandbox Code Playgroud)