Skip to content

Commit 4d98b74

Browse files
Merge pull request #642 from Aiven-Open/rdunklau/use_no_sync_option
Use --no-sync for pg_receivewal
2 parents 8ef6342 + 9541026 commit 4d98b74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pghoard/pghoard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def receivexlog_listener(self, site, connection_info, wal_directory):
265265
# Depending on the PG version, we must react either to MOVE (pre-PG10)
266266
# or CLOSE_WRITE (PG10+)
267267
if pg_version_server >= 100000:
268-
events = ["IN_CLOSE_WRITE"]
268+
events = ["IN_CLOSE_WRITE", "IN_MOVED_TO", "IN_MOVED_FROM"]
269269
else:
270270
events = ["IN_MOVED_TO", "IN_MOVED_FROM"]
271271
events += ["IN_DELETE_SELF"]

pghoard/receivexlog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def run_safe(self):
4545
"--status-interval",
4646
"1",
4747
"--verbose",
48+
"--no-sync",
4849
"--directory",
4950
self.wal_location,
5051
]

0 commit comments

Comments
 (0)