From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: psql command \graw |
Date: | 2017-08-22 09:22:57 |
Message-ID: | CAFj8pRCKYE2-Riv5P5b57rSU+cru6Fg6uOWfeO+h7U8EC-j7sA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2017-08-22 10:46 GMT+02:00 Fabien COELHO <coelho(at)cri(dot)ensmp(dot)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
https://stackoverflow.com/questions/17543386/pipe-plot-data-to-gnuplot-script/17576571#17576571
>
> --
> Fabien.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2017-08-22 09:29:16 | Re: proposal: psql command \graw |
Previous Message | Ashutosh Sharma | 2017-08-22 08:58:33 | Re: Page Scan Mode in Hash Index |