bugfix: psql(): when as_root is on, need to avoid redirections as these are not passed through by sudo
bugfix: psql(): when as_root is on, need to avoid redirections as these are not passed through by sudo