Re: [HACKERS] proposal: psql command \graw - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: [HACKERS] proposal: psql command \graw
Date
Msg-id alpine.DEB.2.20.1708221029110.19265@lancre
Whole thread Raw
In response to [HACKERS] proposal: psql command \graw  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] proposal: psql command \graw  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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.



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: [HACKERS] proposal: psql command \graw
Next
From: Ashutosh Sharma
Date:
Subject: Re: [HACKERS] Page Scan Mode in Hash Index