Enable debug1 while executing 074.bug700_memqcache_segfault.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 21 May 2022 09:09:00 +0000 (18:09 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 17 Jun 2022 07:38:37 +0000 (16:38 +0900)
This is necessary to pursuit occasional timeout in the test.  Also add
debug logging to pool_push_pending_data() for the same purpose.
ereport for debugging to

src/protocol/pool_process_query.c
src/test/regression/tests/074.bug700_memqcache_segfault/test.sh

index bc5bafc7ee59dad2eaf276750f0d0becc4286355..ea66ed6289c10d908727783f0ab6f2c5190563f4 100644 (file)
@@ -5141,6 +5141,9 @@ pool_push_pending_data(POOL_CONNECTION * backend)
        }
 
        num_pending_messages = pool_pending_message_get_message_num_by_backend_id(backend->db_node_id);
+       ereport(DEBUG1,
+                       (errmsg("pool_push_pending_data: num_pending_messages: %d", num_pending_messages)));
+
        num_pushed_messages = 0;
 
        for (;;)
index 5ad09b9f53d23f425ed759f5495a2e264b0db803..a26475bae948bb04a46bdb7ed801d777b5da026a 100755 (executable)
@@ -26,6 +26,7 @@ do
     export PGPORT=$PGPOOL_PORT
 
     echo "memory_cache_enabled = on" >> etc/pgpool.conf
+    echo "log_min_messages = debug1" >> etc/pgpool.conf
     ./startall
     wait_for_pgpool_startup