Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6d528cb

Browse files
authored
Update pg_receivewal@.service
1 parent 2c2f208 commit 6d528cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pg_receivewal/pg_receivewal@.service‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ExecStartPre=rm -f /mnt/backup_db/archive_wal/*.partial
2222
ExecStartPre=/usr/pgsql-%i/bin/pg_receivewal --verbose --user=bkp_replicator --slot=pg_receivewal --create-slot --if-not-exists
2323

2424
# архивируем WAL файлы в реальном времени, появится ещё одна асинхронная реплика, которая никогда не догонит мастер (select * from pg_stat_replication;)
25-
ExecStart=/usr/pgsql-%i/bin/pg_receivewal --user=bkp_replicator --slot=pg_receivewal --directory=/mnt/backup_db/archive_wal --synchronous --compress=9
25+
ExecStart=/usr/pgsql-%i/bin/pg_receivewal --user=bkp_replicator --no-password --slot=pg_receivewal --directory=/mnt/backup_db/archive_wal --synchronous --compress=9
2626

2727
# удаляем слот репликации, если он существует и неактивен (не используется); активный слот удалить нельзя, будет ошибка
2828
ExecStopPost=echo "pg_receivewal: drop unused replication slot"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /