admin shells out to subprocess using a psql binary` for database operations.
Expected / new behavior:
The admin tool should use a postgresql adapter to make database connections instead of relying on shelling out to a psql binary somewhere in the system's path. That'd make database errors more transparent (I'm currently getting the extremely helpful error message "unable to determine if user already exists: exit status 2"), and would eliminate the dependency on the postgresql client.
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
admin
shells out to subprocess using apsql
binary` for database operations.Expected / new behavior:
The
admin
tool should use a postgresql adapter to make database connections instead of relying on shelling out to apsql
binary somewhere in the system's path. That'd make database errors more transparent (I'm currently getting the extremely helpful error message "unable to determine if user already exists: exit status 2"), and would eliminate the dependency on the postgresql client.