[HACKERS] pg_basebackup --progress output for batch execution
В списке pgsql-hackers по дате отправления:
| От | 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
Re: [HACKERS] pg_basebackup --progress output for batch execution |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера