"\echo" has "\qecho" - I'm basically looking for a "\qprint"
"\write" doesn't apply
The following doesn't work either...
#bash (stock Ubuntu 14.04)
psql --set=query_in_var='SELECT version();' > /dev/null <<'SQL'
\o /tmp/psql-test.txt
\set ECHO queries
--still ends up on stdout, hence the redirect to /dev/null to avoid it
showing on screen along with the cat output below
:query_in_var
\o
SQL
cat /tmp/psql-test.txt
Can anyone offer a reason not to add "\qprint"?
David J.