[HACKERS] pg_basebackup --progress output for batch execution

Поиск
Список
Период
Сортировка
От Martin Marques
Тема [HACKERS] pg_basebackup --progress output for batch execution
Дата
Msg-id 4fa60ea6-caa7-e6cf-a016-966189f0ee6e@2ndquadrant.com
обсуждение исходный текст
Ответы Re: [HACKERS] pg_basebackup --progress output for batch execution  (Martin Marques <martin.marques@2ndquadrant.com>)
Re: [HACKERS] pg_basebackup --progress output for batch execution  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
Hi,

Some time ago I had to work on a system where I was cloning a standby
using pg_basebackup, that didn't have screen or tmux. For that reason I
redirected the output to a file and ran it with nohup.

I normally (always actually ;) ) run pg_basebackup with --progress and
--verbose so I can follow how much has been done. When done on a tty you
get a nice progress bar with the percentage that has been cloned.

The problem came with the execution and redirection of the output, as
the --progress option will write a *very* long line!

Back then I thought of writing a patch (actually someone suggested I do
so) to add a --batch-mode option which would change the behavior
pg_basebackup has when printing the output messages.

Attach is the patch. I'll be submitting it to the CF.

P.D.: I'm aware that there's a documentation patch missing. :)

Kind regards,

-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] SendRowDescriptionMessage() is slow for queries with alot of columns
Следующее
От: Nikita Glukhov
Дата:
Сообщение: Re: [HACKERS] SQL/JSON in PostgreSQL