From ce669517c946f36e1663891408ce67b90e0bf605 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sat, 21 May 2022 18:09:00 +0900 Subject: [PATCH] Enable debug1 while executing 074.bug700_memqcache_segfault. 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 | 3 +++ .../regression/tests/074.bug700_memqcache_segfault/test.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/src/protocol/pool_process_query.c b/src/protocol/pool_process_query.c index 4e421e668..4985554c0 100644 --- a/src/protocol/pool_process_query.c +++ b/src/protocol/pool_process_query.c @@ -5104,6 +5104,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 (;;) diff --git a/src/test/regression/tests/074.bug700_memqcache_segfault/test.sh b/src/test/regression/tests/074.bug700_memqcache_segfault/test.sh index 5ad09b9f5..a26475bae 100755 --- a/src/test/regression/tests/074.bug700_memqcache_segfault/test.sh +++ b/src/test/regression/tests/074.bug700_memqcache_segfault/test.sh @@ -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 -- 2.39.5