Remove or downgrade inappropriate log messages at pgpool startup.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 14 Jun 2025 06:13:30 +0000 (15:13 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 14 Jun 2025 06:13:30 +0000 (15:13 +0900)
- Log regarding total shared memory allocation size was redundant.
- Other logs were too verbose and downgraded to DEBUG1.

src/main/health_check.c
src/main/pgpool_main.c
src/query_cache/pool_memqcache.c

index ae831dd6d9acd937da9aa00ed1d4a87a6ebdbddc..9111d3bf91bcf45eeba29ebcdf3b93c8f21b4c7d 100644 (file)
@@ -556,7 +556,7 @@ health_check_stats_shared_memory_size(void)
        size_t  size;
 
        size =  MAXALIGN(sizeof(POOL_HEALTH_CHECK_STATISTICS) * MAX_NUM_BACKENDS);
-       elog(LOG, "health_check_stats_shared_memory_size: requested size: %lu", size);
+       elog(DEBUG1, "health_check_stats_shared_memory_size: requested size: %lu", size);
        return size;
 }
 
index 25298eb871ab60397382d4f5455a4747813a765c..e7ffdd8bfc937428599c566c1357a53aa6f3517b 100644 (file)
@@ -3047,8 +3047,6 @@ initialize_shared_mem_objects(bool clear_memcache_oidmaps)
                elog(DEBUG1, "watchdog: %zu bytes requested for shared memory", MAXALIGN(wd_ipc_get_shared_mem_size()));
        }
 
-       ereport(LOG,
-                       (errmsg("allocating (%zu) bytes of shared memory segment",size)));
        initialize_shared_memory_main_segment(size);
 
        /* Move the backend descriptors to shared memory */
index cc702074d38c1879dbb3ee77cd5af0e66518d642..8b52b782efbfbab98daf7ee5a7133067cd66a610 100644 (file)
@@ -3,7 +3,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2024     PgPool Global Development Group
+ * Copyright (c) 2003-2025     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -2131,10 +2131,8 @@ pool_shared_memory_cache_size(void)
                                 errdetail("memqcache_total_size %ld should be greater or equal to memqcache_cache_block_size %d",
                                                   pool_config->memqcache_total_size,
                                                   pool_config->memqcache_cache_block_size)));
+       elog(DEBUG1, "memcache blocks :%ld", num_blocks);
 
-       ereport(LOG,
-                       (errmsg("memory cache initialized"),
-                        errdetail("memcache blocks :%ld", num_blocks)));
        /* Remember # of blocks */
        pool_set_memqcache_blocks(num_blocks);
        size = pool_config->memqcache_cache_block_size * num_blocks;