pygresql-“ T”消息中的数据不足

时间:2018-06-29 19:52:29

标签: python postgresql pygresql

我遇到了一个我无法解释将pygresql用于python的问题。这是一个简单的SELECT查询,据我所知,这是整个脚本中唯一有问题的查询。

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "run_daily_script.py", line 122, in DelegateAPINodes
    vm_api_group = Execute(db_conn, fetch_api_group, (cust_id, nodes["node_id"]))
  File ".../PreparedQueries.py", line 14, in Execute
    result = db.execute(command)
  File "/usr/local/lib/python2.7/site-packages/pgdb.py", line 1030, in execute
    return self.executemany(operation, [parameters])
  File "/usr/local/lib/python2.7/site-packages/pgdb.py", line 1065, in executemany
    raise _op_error("Internal error in '%s': %s" % (sql, err))
OperationalError: Internal error in 'SELECT * FROM vm_api_group WHERE cust_id=3 AND node_id=18': insufficient data in "T" message

我通过控制台运行查询,它运行正常。我监视了psql日志,并且数据库没有错误。似乎是pygresql的内部操作。

“ T”是什么意思,我该如何解决?

0 个答案:

没有答案