From c5e9b771275b93b09eec6b760677fe6c5e726ab2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 10 Feb 2016 16:01:04 -0500 Subject: Revert "Temporarily make pg_ctl and server shutdown a whole lot chattier." This reverts commit 3971f64843b02e4a55d854156bd53e46a0588e45 and a couple of followon debugging commits; I think we've learned what we can from them. --- src/backend/utils/init/miscinit.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/backend/utils/init/miscinit.c') diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index 03cbb6e3499..b7bab56099f 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -691,31 +691,6 @@ GetUserNameFromId(Oid roleid, bool noerr) return result; } -/* - * Quick hack. - */ -const char * -current_time_as_str(void) -{ - static char buf[128]; - struct timeval now_timeval; - pg_time_t now; - char msbuf[8]; - - gettimeofday(&now_timeval, NULL); - now = (pg_time_t) now_timeval.tv_sec; - - pg_strftime(buf, sizeof(buf), - /* leave room for milliseconds... */ - "%Y-%m-%d %H:%M:%S %Z", - pg_localtime(&now, log_timezone)); - - /* 'paste' milliseconds into place... */ - sprintf(msbuf, ".%03d", (int) (now_timeval.tv_usec / 1000)); - memcpy(buf + 19, msbuf, 4); - - return buf; -} /*------------------------------------------------------------------------- * Interlock-file support @@ -749,9 +724,6 @@ UnlinkLockFiles(int status, Datum arg) } /* Since we're about to exit, no need to reclaim storage */ lock_files = NIL; - - if (IsPostmasterEnvironment) - elog(LOG, "lock files all released at %s", current_time_as_str()); } /* -- cgit v1.2.3