diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-02-10 16:01:04 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-02-10 16:01:04 -0500 |
commit | c5e9b771275b93b09eec6b760677fe6c5e726ab2 (patch) | |
tree | 64bdead0a1170f910f40aa95d55bc4f953235b9e /src/backend/utils/init/miscinit.c | |
parent | 79a7ff0fe56ac9d782b0734ebb0e7a5299015e58 (diff) |
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.
Diffstat (limited to 'src/backend/utils/init/miscinit.c')
-rw-r--r-- | src/backend/utils/init/miscinit.c | 28 |
1 files changed, 0 insertions, 28 deletions
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()); } /* |