diff options
| author | Tom Lane | 2016-02-10 21:01:04 +0000 |
|---|---|---|
| committer | Tom Lane | 2016-02-10 21:01:04 +0000 |
| commit | c5e9b771275b93b09eec6b760677fe6c5e726ab2 (patch) | |
| tree | 64bdead0a1170f910f40aa95d55bc4f953235b9e /src/backend/storage | |
| 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/storage')
| -rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 13 | ||||
| -rw-r--r-- | src/backend/storage/ipc/ipc.c | 25 | ||||
| -rw-r--r-- | src/backend/storage/smgr/md.c | 5 |
3 files changed, 0 insertions, 43 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 3d28946699a..7141eb83c68 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -1691,10 +1691,6 @@ BufferSync(int flags) UnlockBufHdr(bufHdr); } - elog(IsPostmasterEnvironment ? LOG : NOTICE, - "BufferSync(%x) beginning to write %d buffers at %s", - flags, num_to_write, current_time_as_str()); - if (num_to_write == 0) return; /* nothing to do */ @@ -1749,11 +1745,6 @@ BufferSync(int flags) if (num_written >= num_to_write) break; - if ((num_written % 1024) == 0) - elog(IsPostmasterEnvironment ? LOG : NOTICE, - "BufferSync(%x) wrote %d/%d buffers at %s", - flags, num_written, num_to_write, current_time_as_str()); - /* * Sleep to throttle our I/O rate. */ @@ -1765,10 +1756,6 @@ BufferSync(int flags) buf_id = 0; } - elog(IsPostmasterEnvironment ? LOG : NOTICE, - "BufferSync(%x) done, wrote %d/%d buffers at %s", - flags, num_written, num_to_write, current_time_as_str()); - /* * Update checkpoint statistics. As noted above, this doesn't include * buffers written by other backends or bgwriter scan. diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c index 8db5f9ed326..cc36b80699b 100644 --- a/src/backend/storage/ipc/ipc.c +++ b/src/backend/storage/ipc/ipc.c @@ -98,8 +98,6 @@ static int on_proc_exit_index, void proc_exit(int code) { - bool noisy = AmCheckpointerProcess() || (getpid() == PostmasterPid); - /* Clean up everything that must be cleaned up */ proc_exit_prepare(code); @@ -142,10 +140,6 @@ proc_exit(int code) elog(DEBUG3, "exit(%d)", code); - if (noisy) - elog(LOG, "calling exit(%d) at %s", - code, current_time_as_str()); - exit(code); } @@ -157,8 +151,6 @@ proc_exit(int code) static void proc_exit_prepare(int code) { - bool noisy = AmCheckpointerProcess() || (getpid() == PostmasterPid); - /* * Once we set this flag, we are committed to exit. Any ereport() will * NOT send control back to the main loop, but right back here. @@ -205,13 +197,8 @@ proc_exit_prepare(int code) * possible. */ while (--on_proc_exit_index >= 0) - { - if (noisy) - elog(LOG, "doing on_proc_exit %d at %s", - on_proc_exit_index, current_time_as_str()); (*on_proc_exit_list[on_proc_exit_index].function) (code, on_proc_exit_list[on_proc_exit_index].arg); - } on_proc_exit_index = 0; } @@ -227,8 +214,6 @@ proc_exit_prepare(int code) void shmem_exit(int code) { - bool noisy = AmCheckpointerProcess() || (getpid() == PostmasterPid); - /* * Call before_shmem_exit callbacks. * @@ -240,13 +225,8 @@ shmem_exit(int code) elog(DEBUG3, "shmem_exit(%d): %d before_shmem_exit callbacks to make", code, before_shmem_exit_index); while (--before_shmem_exit_index >= 0) - { - if (noisy) - elog(LOG, "doing before_shmem_exit %d at %s", - before_shmem_exit_index, current_time_as_str()); (*before_shmem_exit_list[before_shmem_exit_index].function) (code, before_shmem_exit_list[before_shmem_exit_index].arg); - } before_shmem_exit_index = 0; /* @@ -278,13 +258,8 @@ shmem_exit(int code) elog(DEBUG3, "shmem_exit(%d): %d on_shmem_exit callbacks to make", code, on_shmem_exit_index); while (--on_shmem_exit_index >= 0) - { - if (noisy) - elog(LOG, "doing on_shmem_exit %d at %s", - on_shmem_exit_index, current_time_as_str()); (*on_shmem_exit_list[on_shmem_exit_index].function) (code, on_shmem_exit_list[on_shmem_exit_index].arg); - } on_shmem_exit_index = 0; } diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c index 8552c3d6b84..f6b79a99689 100644 --- a/src/backend/storage/smgr/md.c +++ b/src/backend/storage/smgr/md.c @@ -1314,11 +1314,6 @@ mdpostckpt(void) if (entry->cycle_ctr == mdckpt_cycle_ctr) break; - if ((list_length(pendingUnlinks) % 1024) == 0) - elog(IsPostmasterEnvironment ? LOG : NOTICE, - "in mdpostckpt, %d unlinks remain to do at %s", - list_length(pendingUnlinks), current_time_as_str()); - /* Unlink the file */ path = relpathperm(entry->rnode, MAIN_FORKNUM); if (unlink(path) < 0) |
