diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/access/transam/xlog.c | 1 | ||||
-rw-r--r-- | src/backend/libpq/pqcomm.c | 1 | ||||
-rw-r--r-- | src/backend/main/main.c | 2 | ||||
-rw-r--r-- | src/backend/postmaster/postmaster.c | 3 | ||||
-rw-r--r-- | src/backend/storage/file/fd.c | 1 | ||||
-rw-r--r-- | src/backend/utils/adt/pg_locale.c | 3 | ||||
-rw-r--r-- | src/backend/utils/adt/selfuncs.c | 1 | ||||
-rw-r--r-- | src/backend/utils/error/elog.c | 2 |
8 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 141edf43278..5f3c3b9be1e 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -4182,7 +4182,6 @@ RemoveOldXlogFiles(XLogSegNo segno, XLogRecPtr endptr) xlde->d_name))); #ifdef WIN32 - /* * On Windows, if another process (e.g another backend) * holds the file open in FILE_SHARE_DELETE mode, unlink diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 2b247932ac1..1eae183e33a 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -692,7 +692,6 @@ StreamConnection(pgsocket server_fd, Port *port) } #ifdef WIN32 - /* * This is a Win32 socket optimization. The ideal size is 32k. * http://support.microsoft.com/kb/823764/EN-US/ diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 98da177de94..a8ab4c4ab6f 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -107,7 +107,6 @@ main(int argc, char *argv[]) set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("postgres")); #ifdef WIN32 - /* * Windows uses codepages rather than the environment, so we work around * that by querying the environment explicitly first for LC_COLLATE and @@ -183,7 +182,6 @@ main(int argc, char *argv[]) #endif #ifdef WIN32 - /* * Start our win32 signal implementation * diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 5db01d104a1..e9072b76efc 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1063,7 +1063,6 @@ PostmasterMain(int argc, char *argv[]) InitPostmasterDeathWatchHandle(); #ifdef WIN32 - /* * Initialize I/O completion port used to deliver list of dead children. */ @@ -2929,8 +2928,8 @@ CleanupBackend(int pid, * assume everything is all right and proceed to remove the backend from * the active backend list. */ -#ifdef WIN32 +#ifdef WIN32 /* * On win32, also treat ERROR_WAIT_NO_CHILDREN (128) as nonfatal case, * since that sometimes happens under load when the process fails to start diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 2918f75c0eb..4dc809dc01d 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -1957,7 +1957,6 @@ ReadDir(DIR *dir, const char *dirname) return dent; #ifdef WIN32 - /* * This fix is in mingw cvs (runtime/mingwex/dirent.c rev 1.4), but not in * released version diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index f34446329f5..0c8474df54a 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -463,7 +463,6 @@ PGLC_localeconv(void) save_lc_numeric = pstrdup(save_lc_numeric); #ifdef WIN32 - /* * Ideally, monetary and numeric local symbols could be returned in any * server encoding. Unfortunately, the WIN32 API does not allow @@ -645,7 +644,6 @@ cache_locale_time(void) save_lc_time = pstrdup(save_lc_time); #ifdef WIN32 - /* * On WIN32, there is no way to get locale-specific time values in a * specified locale, like we do for monetary/numeric. We can only get @@ -1172,7 +1170,6 @@ wchar2char(char *to, const wchar_t *from, size_t tolen, pg_locale_t locale) return 0; #ifdef WIN32 - /* * On Windows, the "Unicode" locales assume UTF16 not UTF8 encoding, and * for some reason mbstowcs and wcstombs won't do this for us, so we use diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index 5ca3c0241bc..1ffc0160b77 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -3950,7 +3950,6 @@ convert_string_datum(Datum value, Oid typid) xfrmlen = strxfrm(NULL, val, 0); #endif #ifdef WIN32 - /* * On Windows, strxfrm returns INT_MAX when an error occurs. Instead * of trying to allocate this much memory (and fail), just return the diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index d28b7494115..3668d161610 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -2057,7 +2057,6 @@ write_console(const char *line, int len) int rc; #ifdef WIN32 - /* * Try to convert the message to UTF16 and write it with WriteConsoleW(). * Fall back on write() if anything fails. @@ -2887,7 +2886,6 @@ send_message_to_server_log(ErrorData *edata) if (redirection_done && !am_syslogger) write_pipe_chunks(buf.data, buf.len, LOG_DESTINATION_STDERR); #ifdef WIN32 - /* * In a win32 service environment, there is no usable stderr. Capture * anything going there and write it to the eventlog instead. |