Skip to content

Опция для PG_STOP_BACKUP_TIMEOUT #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
olegkudrin opened this issue Nov 27, 2018 · 3 comments
Closed

Опция для PG_STOP_BACKUP_TIMEOUT #36

olegkudrin opened this issue Nov 27, 2018 · 3 comments

Comments

@olegkudrin
Copy link

Добавьте, пожалуйста, опцию для задания значения PG_STOP_BACKUP_TIMEOUT. На загруженной базе данных резервное копирование прерывается по истечении жестко заданных пяти минут. Меняю значение тайм-аута в исходниках и пересобираю программу, тогда резервное копирование успешно завершается.

@gsmolk
Copy link
Contributor

gsmolk commented Nov 27, 2018

Добрый день.
Я подозреваю, что pg_stop_backup долго отрабатывает из-за того, что ожидает архивации WAL сегмента с STOP LSN. Можете привести лог PostgreSQL, соответствующий этому моменту?

@gsmolk
Copy link
Contributor

gsmolk commented Nov 27, 2018

Как временное решение, мы решили привязать этот таймаут к --archive-timeout.
В будущем скорее всего появится отдельный параметр --query-timeout.
Фикс выйдет завтра в версии 2.0.25.

@gsmolk
Copy link
Contributor

gsmolk commented Nov 28, 2018

Fixed in 59da24d

@gsmolk gsmolk closed this as completed Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants