aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-09-18 17:28:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-09-18 17:28:27 -0400
commitdf8b5f3eb8a7c477156d0ad9d83e7297912cfe79 (patch)
treeeb3282a36b1febc75effa12587350d80c09b6711 /src/include
parent5c07d6497d8e694e5de5a78c1e3f74e2b9790c48 (diff)
downloadpostgresql-REL_11_BETA4.tar.gz
postgresql-REL_11_BETA4.zip
Revert "Allow concurrent-safe open() and fopen() in frontend code for Windows"REL_11_BETA4
This reverts commit f02259fe93e75d5443a2fabe2f2f38b81924ab36, in the v11 branch only. The hack this required in initdb.c should probably have clued us that it wasn't really ready, but we didn't get the hint. Subsequent developments have made clear that it affected text-vs-binary behavior in a lot of places, and there's no reason to think that any of those behavioral changes are desirable. There's no time to fix this before 11beta4, so just revert for the moment. We can keep working on this in HEAD, and maybe reconsider a back-patch once we're satisfied things are stable. (I take the blame for this fiasco, having encouraged Michael to back-patch a change at the last possible moment before beta wrap.)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 9c0848f879a..0ce72e50e5e 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -249,8 +249,11 @@ extern bool rmtree(const char *path, bool rmtopdir);
#define O_DIRECT 0x80000000
extern int pgwin32_open(const char *, int,...);
extern FILE *pgwin32_fopen(const char *, const char *);
+
+#ifndef FRONTEND
#define open(a,b,c) pgwin32_open(a,b,c)
#define fopen(a,b) pgwin32_fopen(a,b)
+#endif
/*
* Mingw-w64 headers #define popen and pclose to _popen and _pclose. We want