pgpool2.git / summary / log / commit / refs

commit    3ce503faa489811c7900792015059f7e5ca0c4cd
Author:   Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date:     Fri Apr 22 11:40:37 2011 +0000

    Increase relcache size from 32 to 128. This has the effect of reducing
    "unnamed prepared statement does not exist" error.
    
    Bug report from Joseph Jacob. See:
    Subject: Fwd: Test java program
    Date: Fri, 15 Apr 2011 12:16:04 -0700


pool_select_walker.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pool_select_walker.c b/pool_select_walker.c index 1877d05bc..7a0fc799c 100644 --- a/pool_select_walker.c +++ b/pool_select_walker.c @@ -296,7 +296,7 @@ static bool is_system_catalog(char *table_name) query = ISBELONGTOPGCATALOGQUERY; } - hasreliscatalog_cache = pool_create_relcache(32, query, + hasreliscatalog_cache = pool_create_relcache(128, query, int_register_func, int_unregister_func, false); if (hasreliscatalog_cache == NULL) @@ -315,7 +315,7 @@ static bool is_system_catalog(char *table_name) */ if (!relcache) { - relcache = pool_create_relcache(32, ISBELONGTOPGCATALOGQUERY, + relcache = pool_create_relcache(128, ISBELONGTOPGCATALOGQUERY, int_register_func, int_unregister_func, true); if (relcache == NULL) @@ -384,7 +384,7 @@ static bool is_temp_table(char *table_name) */ if (!hasrelistemp_cache) { - hasrelistemp_cache = pool_create_relcache(32, HASRELITEMPPQUERY, + hasrelistemp_cache = pool_create_relcache(128, HASRELITEMPPQUERY, int_register_func, int_unregister_func, false); if (hasrelistemp_cache == NULL) @@ -405,7 +405,7 @@ static bool is_temp_table(char *table_name) */ if (!relcache) { - relcache = pool_create_relcache(32, query, + relcache = pool_create_relcache(128, query, int_register_func, int_unregister_func, true); if (relcache == NULL) [parent: 8641ff6fcb64]