pgpool2.git / summary / log / commit / refs

commit    e4e4986653dee6292499c22be37ae0b3a77fd3fc
Author:   Tatsuo Ishii <ishii@sraoss.co.jp>
Date:     Wed May 22 23:22:19 2019 +0000

    Fix to not access pg_stat_replication view if PostgreSQL version is not appropriate.
    
    PostgreSQL 9.0 does not have it.


src/streaming_replication/pool_worker_child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming_replication/pool_worker_child.c b/src/streaming_replication/pool_worker_child.c index 76cb7b38c..7687ff025 100644 --- a/src/streaming_replication/pool_worker_child.c +++ b/src/streaming_replication/pool_worker_child.c @@ -324,7 +324,7 @@ check_replication_time_lag(void) callback.arg = NULL; callback.previous = error_context_stack; error_context_stack = &callback; - stat_rep_query = ""; + stat_rep_query = NULL; for (i = 0; i < NUM_BACKENDS; i++) { [parent: ad211b91efad]