diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 889606517c..c2b7bc9851 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -3602,6 +3602,11 @@ InstallXLogFileSegment(XLogSegNo *segno, char *tmppath,
 	 * Perform the rename using link if available, paranoidly trying to avoid
 	 * overwriting an existing file (there shouldn't be one).
 	 */
+	{
+		struct stat b;
+		if (stat("/tmp/hoge", &b) == 0)
+			usleep(500000);
+	}
 	if (durable_link_or_rename(tmppath, path, LOG) != 0)
 	{
 		if (use_lock)
