From 546d65d55fd67c40e6f31d16cc8fa6e9afd3a403 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 14 Nov 2012 19:01:29 -0500
Subject: [PATCH] In pg_upgrade, add third meaningless parameter to open().

---
 contrib/pg_upgrade/relfilenode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/pg_upgrade/relfilenode.c b/contrib/pg_upgrade/relfilenode.c
index d763ba7d2ba..8f7d569491b 100644
--- a/contrib/pg_upgrade/relfilenode.c
+++ b/contrib/pg_upgrade/relfilenode.c
@@ -199,7 +199,7 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
 		if (type_suffix[0] != '\0' || segno != 0)
 		{
 			/* Did file open fail? */
-			if ((fd = open(old_file, O_RDONLY)) == -1)
+			if ((fd = open(old_file, O_RDONLY, 0)) == -1)
 			{
 				/* File does not exist?  That's OK, just return */
 				if (errno == ENOENT)
-- 
GitLab