You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hawq.apache.org by "Haisheng Yuan (JIRA)" <ji...@apache.org> on 2016/11/02 04:53:58 UTC
[jira] [Created] (HAWQ-1136) Disable .psqlrc in minirepro
Haisheng Yuan created HAWQ-1136:
-----------------------------------
Summary: Disable .psqlrc in minirepro
Key: HAWQ-1136
URL: https://issues.apache.org/jira/browse/HAWQ-1136
Project: Apache HAWQ
Issue Type: Bug
Components: Command Line Tools
Reporter: Haisheng Yuan
Assignee: Lei Chang
.psqlrc can create unexpected output and changes in formatting that don't play nice with parse_oids().
```
psql database --pset footer -Atq -h localhost -p 5432 -U gpadmin -f /tmp/20161012232709/toolkit.sql
{"relids": "573615536", "funcids": ""}
Time: 2.973 ms
```
Generates an Exception:
```
Traceback (most recent call last):
File "/usr/local/greenplum-db/./bin/minirepro", line 386, in <module>
main()
File "/usr/local/greenplum-db/./bin/minirepro", line 320, in main
mr_query = parse_oids(cursor, json_str)
File "/usr/local/greenplum-db/./bin/minirepro", line 151, in parse_oids
result.relids = json.loads(json_oids)['relids']
File "/usr/local/greenplum-db/ext/python/lib/python2.6/json/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/local/greenplum-db/ext/python/lib/python2.6/json/decoder.py", line 322, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 2 column 1 - line 3 column 1 (char 39 - 54)
```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)