mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Revert "Temporarily make pg_ctl and server shutdown a whole lot chattier."
This reverts commit 3971f64843
and a
couple of followon debugging commits; I think we've learned what we can
from them.
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user