Make enable_shared_relcache to on by default.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 8 Oct 2019 07:56:57 +0000 (16:56 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 8 Oct 2019 07:56:57 +0000 (16:56 +0900)
enable_shared_relcache enhances performance in most cases without
downsides.  So let's enable the feature by default.

doc.ja/src/sgml/misc-config.sgml
doc/src/sgml/misc-config.sgml
src/config/pool_config_variables.c
src/sample/pgpool.conf.sample
src/sample/pgpool.conf.sample-logical
src/sample/pgpool.conf.sample-master-slave
src/sample/pgpool.conf.sample-replication
src/sample/pgpool.conf.sample-stream

index e6a2196d58146f57a9bce85178485754b3e00e83..1c22c11a31bb27cede03b51cbf897b98f944885e 100644 (file)
     <para>
      <!--
      Setting to on, relation cache shared among <productname>Pgpool-II</productname>
-     child processes using the query cache. Default is off. Each child process
+     child processes using the query cache. Default is on. Each child process
      executed same query to refer to system catalog from <productname>PostgreSQL</productname>,
      but using query cache can expect to execute only same query once.
      Expiration time on query cache is <xref linkend="guc-relcache-expire"> parameter.
      is used together.
      -->
      onใซใ™ใ‚‹ใจใ‚ฏใ‚จใƒชใ‚ญใƒฃใƒƒใ‚ทใƒฅใ‚’ๅˆฉ็”จใ—ใฆๅญใƒ—ใƒญใ‚ปใ‚น้–“ใงใƒชใƒฌใƒผใ‚ทใƒงใƒณใ‚ญใƒฃใƒƒใ‚ทใƒฅใ‚’ๅ…ฑๆœ‰ใ—ใพใ™ใ€‚
-     ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใฏoffใงใ™ใ€‚
+     ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใฏonใงใ™ใ€‚
      ใใ‚Œใžใ‚Œใฎๅญใƒ—ใƒญใ‚ปใ‚นใฏ<productname>PostgreSQL</productname>ใฎใ‚ทใ‚นใƒ†ใƒ ใ‚ซใ‚ฟใƒญใ‚ฐใ‚’ๅ‚็…งใ™ใ‚‹ใŸใ‚ใซๅŒใ˜ใ‚ฏใ‚จใƒชใ‚’ๅฎŸ่กŒใ—ใฆใ„ใพใ—ใŸใŒใ€ใ‚ฏใ‚จใƒชใ‚ญใƒฃใƒƒใ‚ทใƒฅใซใ‚ˆใ‚ŠๅŒใ˜ใ‚ฏใ‚จใƒชใฎๅฎŸ่กŒใ‚’1ๅ›žใ ใ‘ใจใ™ใ‚‹ใ“ใจใŒๆœŸๅพ…ใงใใพใ™ใ€‚
      ใ‚ฏใ‚จใƒชใ‚ญใƒฃใƒƒใ‚ทใƒฅไธŠใฎๅฏฟๅ‘ฝใฏใ€<xref linkend="guc-relcache-expire">ใฎๅ€คใจใชใ‚Šใพใ™ใ€‚
       ๆœฌใƒ‘ใƒฉใƒกใƒผใ‚ฟใฏใ€<xref linkend="guc-memory-cache-enabled">ใŒoffใฎๅ ดๅˆใ‚‚ๆœ‰ๅŠนใงใ™ใ€‚
index 0ac45a886508249fc4f0f0563063196f62118d3c..e9ae25e9b338c33485d4a74ed8671aaa6411a2b5 100644 (file)
@@ -77,7 +77,7 @@
    <listitem>
     <para>
      Setting to on, relation cache shared among <productname>Pgpool-II</productname>
-     child processes using the query cache. Default is off. Each child process
+     child processes using the query cache. Default is on. Each child process
      executed same query to refer to system catalog from <productname>PostgreSQL</productname>,
      but using query cache can expect to execute only same query once.
      Expiration time on query cache is <xref linkend="guc-relcache-expire"> parameter.
index 308f54a21132e01dbc574d8eaf9b60e139161efa..f5e9b5934bb4ce4c357a6c49611ae7654c1af1f0 100644 (file)
@@ -563,7 +563,7 @@ static struct config_bool ConfigureNamesBool[] =
                        CONFIG_VAR_TYPE_BOOL, false, 0
                },
                &g_pool_config.enable_shared_relcache,
-               false,
+               true,
                NULL, NULL, NULL
        },
 
index 16a650a42e7ea0fa23c7e4bce16cf76ef5813a73..31e420dab304224c8c4c64f570f184a1345ab140 100644 (file)
@@ -779,10 +779,10 @@ check_unlogged_table = on
                                    # If you are absolutely sure that your system never uses unlogged tables
                                    # and you want to save access to primary/master, you could turn this off.
                                    # Default is on.
-enable_shared_relcache = off
+enable_shared_relcache = on
                                    # If on, relation cache stored in memory cache,
                                    # the cache is shared among child process.
-                                   # Default is off.
+                                   # Default is on.
                                    # (change requires restart)
 
 relcache_query_target = master     # Target node to send relcache queries. Default is master (primary) node.
index cf69ae7655fca9ca261465d9e6f09cbcebc1345e..630b2259b658880cc6fb315bc06bd19076d9807b 100644 (file)
@@ -756,10 +756,10 @@ check_unlogged_table = on
                                    # If you are absolutely sure that your system never uses unlogged tables
                                    # and you want to save access to primary/master, you could turn this off.
                                    # Default is on.
-enable_shared_relcache = off
+enable_shared_relcache = on
                                    # If on, relation cache stored in memory cache,
                                    # the cache is shared among child process.
-                                   # Default is off.
+                                   # Default is on.
                                    # (change requires restart)
 
 relcache_query_target = master     # Target node to send relcache queries. Default is master (primary) node.
index bf0ea23572fe6c7e04ed7b5aac7f9c52535d8b77..4d7d8c8d533e5395a9f04dbe0f8880b7bac51903 100644 (file)
@@ -773,10 +773,10 @@ check_unlogged_table = on
                                    # If you are absolutely sure that your system never uses unlogged tables
                                    # and you want to save access to primary/master, you could turn this off.
                                    # Default is on.
-enable_shared_relcache = off
+enable_shared_relcache = on
                                    # If on, relation cache stored in memory cache,
                                    # the cache is shared among child process.
-                                   # Default is off.
+                                   # Default is on.
                                    # (change requires restart)
 
 relcache_query_target = master     # Target node to send relcache queries. Default is master (primary) node.
index 78f9c6b5bf2973dec961fc33048391933176a538..d74ea472bed3c8aaa9e1a72b8a6a60e70d404d75 100644 (file)
@@ -773,10 +773,10 @@ check_unlogged_table = on
                                    # If you are absolutely sure that your system never uses unlogged tables
                                    # and you want to save access to primary/master, you could turn this off.
                                    # Default is on.
-enable_shared_relcache = off
+enable_shared_relcache = on
                                    # If on, relation cache stored in memory cache,
                                    # the cache is shared among child process.
-                                   # Default is off.
+                                   # Default is on.
                                    # (change requires restart)
 
 relcache_query_target = master     # Target node to send relcache queries. Default is master (primary) node.
index 0ab05d005571718f73e5c9a032999b636d73aa19..c625e740ceb26c175965736eb3517977b58619b7 100644 (file)
@@ -775,10 +775,10 @@ check_unlogged_table = on
                                    # If you are absolutely sure that your system never uses unlogged tables
                                    # and you want to save access to primary/master, you could turn this off.
                                    # Default is on.
-enable_shared_relcache = off
+enable_shared_relcache = on
                                    # If on, relation cache stored in memory cache,
                                    # the cache is shared among child process.
-                                   # Default is off.
+                                   # Default is on.
                                    # (change requires restart)
 
 relcache_query_target = master     # Target node to send relcache queries. Default is master (primary) node.