Re: proposal: psql command \graw

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: psql command \graw
Date: 2017-08-22 08:46:21
Message-ID: alpine.DEB.2.20.1708221029110.19265@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello Pavel,

> One my idea is introduction new simple output format and execution command
> with result in this format.
>
> It should work something like
>
> \setenv GNUPLOT_OPTION '......'
> SELECT * FROM data
> \graw | gnuplot ...

I understand that it is kind of a shortcut for:

\pset fieldsep ' '
\pset format unaligned
\pset tuples_only on
-- possibly other settings...
SELECT * FROM data \g | gnuplot '...'

And then you have to persuade gnuplot to take its data from stdin?

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Sharma 2017-08-22 08:58:33 Re: Page Scan Mode in Hash Index
Previous Message Aleksander Alekseev 2017-08-22 08:36:52 Re: proposal: psql command \graw