Movatterモバイル変換


[0]ホーム

URL:


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

Commit1fabec7

Browse files
committed
fsync pg_logical/mappings in CheckPointLogicalRewriteHeap().
While individual logical rewrite files were synced to disk, the directory wasnot. On some filesystems that could lead to loosing directory entries after acrash.Reported-By: Tom Lane <tgl@sss.pgh.pa.us>Author: Nathan Bossart <bossartn@amazon.com>Discussion:https://postgr.es/m/867F2E29-2782-4869-970E-B984C6D35A8F@amazon.comBackpatch: 10-
1 parent6c07f9e commit1fabec7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/access/heap/rewriteheap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,4 +1282,7 @@ CheckPointLogicalRewriteHeap(void)
12821282
}
12831283
}
12841284
FreeDir(mappings_dir);
1285+
1286+
/* persist directory entries to disk */
1287+
fsync_fname("pg_logical/mappings", true);
12851288
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp