pgpool2.git / summary / log / commit / refs

commit    220fabaf3a4ebc5320efccc1cd98963bf0641354
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Tue Jan 07 04:54:02 2014 +0000

    Fix cache locality of unlogged tables detection code.
    
    It was mistakenly defined as a session local cache, which causes
    unwanted cache invalidation at session starting, which brings bad
    performance. Pointed out at [pgpool-hackers: 435][[pgpool-general:
    2325].


src/utils/pool_select_walker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/pool_select_walker.c b/src/utils/pool_select_walker.c index c1397f0d7..5c13199cb 100644 --- a/src/utils/pool_select_walker.c +++ b/src/utils/pool_select_walker.c @@ -5,7 +5,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2013 PgPool Global Development Group + * Copyright (c) 2003-2014 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -657,7 +657,7 @@ bool is_unlogged_table(char *table_name) { relcache = pool_create_relcache(pool_config->relcache_size, query, int_register_func, int_unregister_func, - true); + false); if (relcache == NULL) { pool_error("is_unlogged_table: pool_create_relcache error"); [parent: b7c18125fdd7]