psql: Missing option to print current buffer to current output channel (i.e., \qprint)

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: psql: Missing option to print current buffer to current output channel (i.e., \qprint)
Date: 2016-08-04 17:42:16
Message-ID: CAKFQuwZAm9WXpY+=iBvQUgALCtAP1VA6sT6eRRWg4r_MmWLm=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"\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.

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2016-08-04 17:48:31 Pgbench performance tuning?
Previous Message Claudio Freire 2016-08-04 17:35:32 Re: Heap WARM Tuples - Design Draft