49
50
Open a connection as the postgres user and execute query,
50
51
returning the result for further processing.
53
"sudo", "-u", dbadmin, "-s", "/usr/bin/psql",
54
"--tuples-only", "--no-align", "--field-separator=','"],
54
"/usr/bin/psql", "--tuples-only", "--no-align",
58
args[:0] = ["sudo", "-u", dbadmin, "-s"]
56
61
output, errors = popen.communicate(query)