Re: Invisible PROMPT2

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Invisible PROMPT2
Дата
Msg-id CAFj8pRBr3=dB62feOVXmCFducb6wSMk6tkVU=Vm9=_afTD=MWg@mail.gmail.com
обсуждение исходный текст
Ответ на Invisible PROMPT2  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers


st 13. 11. 2019 v 4:15 odesílatel Thomas Munro <thomas.munro@gmail.com> napsal:
Hello hackers,

From the advanced bikeshedding department: I'd like my psql
transcripts to have the usual alignment, but be easier to copy and
paste later without having weird prompt stuff in the middle.  How
about a prompt format directive %w that means "whitespace of the same
width as %/"?  Then you can make set your PROMPT2 to '%w   ' and it
becomes invisible:

pgdu=# create table foo (
         i int,
         j int
       );
CREATE TABLE
pgdu=#

+1

Pavel

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pg_waldump and PREPARE
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] Block level parallel vacuum