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

From Pavel Stehule
Subject Re: [HACKERS] proposal: psql command \graw
Date
Msg-id CAFj8pRCKYE2-Riv5P5b57rSU+cru6Fg6uOWfeO+h7U8EC-j7sA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] proposal: psql command \graw  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers


2017-08-22 10:46 GMT+02:00 Fabien COELHO <coelho@cri.ensmp.fr>:

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?

There are some methods





--
Fabien.

pgsql-hackers by date:

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