Re: new release pspg

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new release pspg
Date: 2021-03-23 17:08:23
Message-ID: CAFj8pRALgeteNdaN3dKPQsN0wdQqH71FKJMXh0qXqZzJR07=ZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

ne 21. 3. 2021 v 7:40 odesílatel Greg Stark <stark(at)mit(dot)edu> napsal:

> This is really cool. .... Now I just need to figure out how to
> integrate it with using Emacs for my terminal. I still want to use
> emacs enter and edit my queries but it would be cool to be able to hit
> a key and launch an xterm and send the query output to pspg....
>

pspg 4.5.0 supports --querystream mode

run in one terminal /pspg --querystream -f ~/pipe --hold-stream=2 -h
localhost

and from any application, where you can write to stream, you can send a
queries separated by GS char 0x1d or ^] on separate line

[pavel(at)localhost src]$ cat /dev/tty > ~/pipe
select 1
^]
select * from pg_class limit
10
^]

Regards

Pavel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2021-03-23 17:09:48 Re: proposal - psql - use pager for \watch command
Previous Message James Coleman 2021-03-23 16:48:32 Re: Nicer error when connecting to standby with hot_standby=off