<div dir="ltr">Same error!!!!<div><br></div><div><div>-rw-r--r--. 1 apache postgres    45 abr 11 17:09 pool_passwd</div></div><div><br></div><div><br></div><div><br></div><div><div>-bash-4.2$ psql -h localhost -U postgres -p 9999</div><div>psql: ERROR:  unable to read message length</div><div>DETALLE:  message length (12) in slot 1 does not match with slot 0(8)</div></div><div><br></div><div>pool_passwd</div><div><br></div><div><div>postgres:md59798b5eb1000b9fad41c78e5a3dccxxx</div></div><div><br></div><div><br></div><div><div>select * from pg_shadow where usename=&#39;postgres&#39;;</div><div><br></div><div>md59798b5eb1000b9fad41c78e5a3dccxxx</div></div><div><br></div><div>the pool_passwd permision is ok?</div><div>I do not know what else to do!!! </div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-08 20:56 GMT-03:00 Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; Yes Tatsuo we have encrypted the postgres user in both servers<br>
&gt;<br>
&gt; SELECT * from pg_shadow a WHERE a.usename=&#39;postgres&#39;;<br>
&gt;<br>
&gt; postgres 10 t t t t md59798b5eb1000b9fad41c78e5a3dccxxx<br>
&gt;<br>
&gt; Is diferent a pcp.conf<br>
&gt;<br>
&gt; # USERID:MD5PASSWD<br>
&gt; postgres:5c0435eee0f211f150e980e459151xxx<br>
<br>
</span>I assume it&#39;s pool_passwd. It seems the pool_passwd was correctly<br>
setup. Please see the doc:<br>
<br>
<a href="http://www.pgpool.net/docs/latest/pgpool-en.html#md5" rel="noreferrer" target="_blank">http://www.pgpool.net/docs/latest/pgpool-en.html#md5</a><br>
<div><div class="h5"><br>
&gt; thanks again for your time!!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2016-04-07 23:57 GMT-03:00 Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt;:<br>
&gt;<br>
&gt;&gt; pg_hba.conf looks good.  So the user in question has encrypted<br>
&gt;&gt; password on the both PostgreSQL server? You can check it by looking at<br>
&gt;&gt; pg_shadow (needs PostgreSQL super user privilege). The &quot;password&quot;<br>
&gt;&gt; column should look something like &quot;md5.....&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; --<br>
&gt;&gt; Tatsuo Ishii<br>
&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; Thanks a lots for your time!!!!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Master pgpool.conf and pg_hba.conf<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # ----------------------------<br>
&gt;&gt; &gt; # pgPool-II configuration file<br>
&gt;&gt; &gt; # ----------------------------<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; # This file consists of lines of the form:<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; #   name = value<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; # Whitespace may be used.  Comments are introduced with &quot;#&quot; anywhere on a<br>
&gt;&gt; &gt; line.<br>
&gt;&gt; &gt; # The complete list of parameter names and allowed values can be found in<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; # pgPool-II documentation.<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; # This file is read on server startup and when the server receives a<br>
&gt;&gt; SIGHUP<br>
&gt;&gt; &gt; # signal.  If you edit the file on a running system, you have to SIGHUP<br>
&gt;&gt; the<br>
&gt;&gt; &gt; # server for the changes to take effect, or use &quot;pgpool reload&quot;.  Some<br>
&gt;&gt; &gt; # parameters, which are marked below, require a server shutdown and<br>
&gt;&gt; restart<br>
&gt;&gt; &gt; to<br>
&gt;&gt; &gt; # take effect.<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # CONNECTIONS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - pgpool Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; listen_addresses = &#39;*&#39;<br>
&gt;&gt; &gt;                                    # Host name or IP address to listen<br>
&gt;&gt; on:<br>
&gt;&gt; &gt;                                    # &#39;*&#39; for all, &#39;&#39; for no TCP/IP<br>
&gt;&gt; &gt; connections<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; port = 9999<br>
&gt;&gt; &gt;                                    # Port number<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; socket_dir = &#39;/tmp&#39;<br>
&gt;&gt; &gt;                                    # Unix domain socket path<br>
&gt;&gt; &gt;                                    # The Debian package defaults to<br>
&gt;&gt; &gt;                                    # /var/run/postgresql<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - pgpool Communication Manager Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; pcp_listen_addresses = &#39;*&#39;<br>
&gt;&gt; &gt;                                    # Host name or IP address for pcp<br>
&gt;&gt; &gt; process to listen on:<br>
&gt;&gt; &gt;                                    # &#39;*&#39; for all, &#39;&#39; for no TCP/IP<br>
&gt;&gt; &gt; connections<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; pcp_port = 9898<br>
&gt;&gt; &gt;                                    # Port number for pcp<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; pcp_socket_dir = &#39;/tmp&#39;<br>
&gt;&gt; &gt;                                    # Unix domain socket path for pcp<br>
&gt;&gt; &gt;                                    # The Debian package defaults to<br>
&gt;&gt; &gt;                                    # /var/run/postgresql<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; listen_backlog_multiplier = 2<br>
&gt;&gt; &gt;                                    # Set the backlog parameter of<br>
&gt;&gt; listen(2)<br>
&gt;&gt; &gt; to<br>
&gt;&gt; &gt;   # num_init_children * listen_backlog_multiplier.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Backend Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                                    # Host name or IP address to connect<br>
&gt;&gt; to<br>
&gt;&gt; &gt; for backend 0<br>
&gt;&gt; &gt;                                    # Port number for backend 0<br>
&gt;&gt; &gt;                                    # Weight for backend 0 (only in load<br>
&gt;&gt; &gt; balancing mode)<br>
&gt;&gt; &gt;                                    # Data directory for backend 0<br>
&gt;&gt; &gt;                                    # Controls various backend behavior<br>
&gt;&gt; &gt;                                    # ALLOW_TO_FAILOVER or<br>
&gt;&gt; &gt; DISALLOW_TO_FAILOVER<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Authentication -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; enable_pool_hba = on<br>
&gt;&gt; &gt;                                    # Use pool_hba.conf for client<br>
&gt;&gt; &gt; authentication<br>
&gt;&gt; &gt; pool_passwd = &#39;pool_passwd&#39;<br>
&gt;&gt; &gt;                                    # File name of pool_passwd for md5<br>
&gt;&gt; &gt; authentication.<br>
&gt;&gt; &gt;                                    # &quot;&quot; disables pool_passwd.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; authentication_timeout = 60<br>
&gt;&gt; &gt;                                    # Delay in seconds to complete client<br>
&gt;&gt; &gt; authentication<br>
&gt;&gt; &gt;                                    # 0 means no timeout.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - SSL Connections -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ssl = off<br>
&gt;&gt; &gt;                                    # Enable SSL support<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_key = &#39;./server.key&#39;<br>
&gt;&gt; &gt;                                    # Path to the SSL private key file<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_cert = &#39;./server.cert&#39;<br>
&gt;&gt; &gt;                                    # Path to the SSL public certificate<br>
&gt;&gt; file<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_ca_cert = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Path to a single PEM format file<br>
&gt;&gt; &gt;                                    # containing CA root certificate(s)<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_ca_cert_dir = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Directory containing CA root<br>
&gt;&gt; &gt; certificate(s)<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # POOLS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Pool size -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; num_init_children = 32<br>
&gt;&gt; &gt;                                    # Number of pools<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; max_pool = 4<br>
&gt;&gt; &gt;                                    # Number of connections per pool<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Life time -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; child_life_time = 300<br>
&gt;&gt; &gt;                                    # Pool exits after being idle for this<br>
&gt;&gt; &gt; many seconds<br>
&gt;&gt; &gt; child_max_connections = 0<br>
&gt;&gt; &gt;                                    # Pool exits after receiving that many<br>
&gt;&gt; &gt; connections<br>
&gt;&gt; &gt;                                    # 0 means no exit<br>
&gt;&gt; &gt; connection_life_time = 0<br>
&gt;&gt; &gt;                                    # Connection to backend closes after<br>
&gt;&gt; &gt; being idle for this many seconds<br>
&gt;&gt; &gt;                                    # 0 means no close<br>
&gt;&gt; &gt; client_idle_limit = 0<br>
&gt;&gt; &gt;                                    # Client is disconnected after being<br>
&gt;&gt; &gt; idle for that many seconds<br>
&gt;&gt; &gt;                                    # (even inside an explicit<br>
&gt;&gt; transactions!)<br>
&gt;&gt; &gt;                                    # 0 means no disconnection<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # LOGS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Where to log -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_destination = &#39;syslog&#39;<br>
&gt;&gt; &gt;                                    # Where to log<br>
&gt;&gt; &gt;                                    # Valid values are combinations of<br>
&gt;&gt; &gt; stderr,<br>
&gt;&gt; &gt;                                    # and syslog. Default to stderr.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - What to log -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_line_prefix = &#39;%t: pid %p:    # printf-style string to output at<br>
&gt;&gt; &gt; beginning of each log line.&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_connections = off<br>
&gt;&gt; &gt;                                    # Log connections<br>
&gt;&gt; &gt; log_hostname = on<br>
&gt;&gt; &gt;                                    # Hostname will be shown in ps status<br>
&gt;&gt; &gt;                                    # and in logs if connections are<br>
&gt;&gt; logged<br>
&gt;&gt; &gt; log_statement = on<br>
&gt;&gt; &gt;                                    # Log all statements<br>
&gt;&gt; &gt; log_per_node_statement = on<br>
&gt;&gt; &gt;                                    # Log all statements<br>
&gt;&gt; &gt;                                    # with node and backend informations<br>
&gt;&gt; &gt; log_standby_delay = &#39;if_over_threshold&#39;<br>
&gt;&gt; &gt;                                    # Log standby delay<br>
&gt;&gt; &gt;                                    # Valid values are combinations of<br>
&gt;&gt; &gt; always,<br>
&gt;&gt; &gt;                                    # if_over_threshold, none<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Syslog specific -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; syslog_facility = &#39;LOCAL0&#39;<br>
&gt;&gt; &gt;                                    # Syslog local facility. Default to<br>
&gt;&gt; &gt; LOCAL0<br>
&gt;&gt; &gt; syslog_ident = &#39;pgpool&#39;<br>
&gt;&gt; &gt;                                    # Syslog program identification string<br>
&gt;&gt; &gt;                                    # Default to &#39;pgpool&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Debug -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; debug_level = 5<br>
&gt;&gt; &gt;                                    # Debug message verbosity level<br>
&gt;&gt; &gt;                                    # 0 means no message, 1 or more mean<br>
&gt;&gt; &gt; verbose<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_error_verbosity = &#39;DEFAULT&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #client_min_messages = notice           # values in order of decreasing<br>
&gt;&gt; &gt; detail:<br>
&gt;&gt; &gt;                                         #   debug5<br>
&gt;&gt; &gt;                                         #   debug4<br>
&gt;&gt; &gt;                                         #   debug3<br>
&gt;&gt; &gt;                                         #   debug2<br>
&gt;&gt; &gt;                                         #   debug1<br>
&gt;&gt; &gt;                                         #   log<br>
&gt;&gt; &gt;                                         #   notice<br>
&gt;&gt; &gt;                                         #   warning<br>
&gt;&gt; &gt;                                         #   error<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #log_min_messages = warning             # values in order of decreasing<br>
&gt;&gt; &gt; detail:<br>
&gt;&gt; &gt;                                         #   debug5<br>
&gt;&gt; &gt;                                         #   debug4<br>
&gt;&gt; &gt;                                         #   debug3<br>
&gt;&gt; &gt;                                         #   debug2<br>
&gt;&gt; &gt;                                         #   debug1<br>
&gt;&gt; &gt;                                         #   info<br>
&gt;&gt; &gt;                                         #   notice<br>
&gt;&gt; &gt;                                         #   warning<br>
&gt;&gt; &gt;                                         #   error<br>
&gt;&gt; &gt;                                         #   log<br>
&gt;&gt; &gt;                                         #   fatal<br>
&gt;&gt; &gt;                                         #   panic<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # FILE LOCATIONS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; pid_file_name = &#39;/var/run/pgpool/pgpool.pid&#39;<br>
&gt;&gt; &gt;                                    # PID file name<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; logdir = &#39;/tmp&#39;<br>
&gt;&gt; &gt;                                    # Directory of pgPool status file<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # CONNECTION POOLING<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; connection_cache = on<br>
&gt;&gt; &gt;                                    # Activate connection pools<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                                    # Semicolon separated list of queries<br>
&gt;&gt; &gt;                                    # to be issued at the end of a session<br>
&gt;&gt; &gt;                                    # The default is for 8.3 and later<br>
&gt;&gt; &gt; reset_query_list = &#39;ABORT; DISCARD ALL&#39;<br>
&gt;&gt; &gt;                                    # The following one is for 8.2 and<br>
&gt;&gt; before<br>
&gt;&gt; &gt; #reset_query_list = &#39;ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # REPLICATION MODE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; replication_mode = off<br>
&gt;&gt; &gt;                                    # Activate replication mode<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; replicate_select = off<br>
&gt;&gt; &gt;                                    # Replicate SELECT statements<br>
&gt;&gt; &gt;                                    # when in replication mode<br>
&gt;&gt; &gt;                                    # replicate_select is higher priority<br>
&gt;&gt; &gt; than<br>
&gt;&gt; &gt;                                    # load_balance_mode.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; insert_lock = off<br>
&gt;&gt; &gt;                                    # Automatically locks a dummy row or a<br>
&gt;&gt; &gt; table<br>
&gt;&gt; &gt;                                    # with INSERT statements to keep<br>
&gt;&gt; SERIAL<br>
&gt;&gt; &gt; data<br>
&gt;&gt; &gt;                                    # consistency<br>
&gt;&gt; &gt;                                    # Without SERIAL, no lock will be<br>
&gt;&gt; issued<br>
&gt;&gt; &gt; lobj_lock_table = &#39;&#39;<br>
&gt;&gt; &gt;                                    # When rewriting lo_creat command in<br>
&gt;&gt; &gt;                                    # replication mode, specify table<br>
&gt;&gt; name to<br>
&gt;&gt; &gt;                                    # lock<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Degenerate handling -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; replication_stop_on_mismatch = off<br>
&gt;&gt; &gt;                                    # On disagreement with the packet kind<br>
&gt;&gt; &gt;                                    # sent from backend, degenerate the<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    # which is most likely &quot;minority&quot;<br>
&gt;&gt; &gt;                                    # If off, just force to exit this<br>
&gt;&gt; session<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; failover_if_affected_tuples_mismatch = off<br>
&gt;&gt; &gt;                                    # On disagreement with the number of<br>
&gt;&gt; &gt; affected<br>
&gt;&gt; &gt;                                    # tuples in UPDATE/DELETE queries,<br>
&gt;&gt; then<br>
&gt;&gt; &gt;                                    # degenerate the node which is most<br>
&gt;&gt; &gt; likely<br>
&gt;&gt; &gt;                                    # &quot;minority&quot;.<br>
&gt;&gt; &gt;                                    # If off, just abort the transaction<br>
&gt;&gt; to<br>
&gt;&gt; &gt;                                    # keep the consistency<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # LOAD BALANCING MODE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; load_balance_mode = on<br>
&gt;&gt; &gt;                                    # Activate load balancing mode<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; ignore_leading_white_space = on<br>
&gt;&gt; &gt;                                    # Ignore leading white spaces of each<br>
&gt;&gt; &gt; query<br>
&gt;&gt; &gt; white_function_list = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of function<br>
&gt;&gt; names<br>
&gt;&gt; &gt;                                    # that don&#39;t write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt; black_function_list = &#39;currval,lastval,nextval,setval&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of function<br>
&gt;&gt; names<br>
&gt;&gt; &gt;                                    # that write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; database_redirect_preference_list = &#39;&#39;<br>
&gt;&gt; &gt;   # comma separated list of pairs of database and node id.<br>
&gt;&gt; &gt;   # example: postgres:primary,mydb[0-4]:1,mydb[5-9]:2&#39;<br>
&gt;&gt; &gt;   # valid for streaming replicaton mode only.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; app_name_redirect_preference_list = &#39;&#39;<br>
&gt;&gt; &gt;   # comma separated list of pairs of app name and node id.<br>
&gt;&gt; &gt;   # example: &#39;psql:primary,myapp[0-4]:1,myapp[5-9]:standby&#39;<br>
&gt;&gt; &gt;   # valid for streaming replicaton mode only.<br>
&gt;&gt; &gt; allow_sql_comments = off<br>
&gt;&gt; &gt;   # if on, ignore SQL comments when judging if load balance or<br>
&gt;&gt; &gt;   # query cache is possible.<br>
&gt;&gt; &gt;   # If off, SQL comments effectively prevent the judgment<br>
&gt;&gt; &gt;   # (pre 3.4 behavior).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # MASTER/SLAVE MODE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; master_slave_mode = on<br>
&gt;&gt; &gt;                                    # Activate master/slave mode<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; master_slave_sub_mode = &#39;stream&#39;<br>
&gt;&gt; &gt;                                    # Master/slave sub mode<br>
&gt;&gt; &gt;                                    # Valid values are combinations slony<br>
&gt;&gt; or<br>
&gt;&gt; &gt;                                    # stream. Default is slony.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Streaming -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; sr_check_period = 0<br>
&gt;&gt; &gt;                                    # Streaming replication check period<br>
&gt;&gt; &gt;                                    # Disabled (0) by default<br>
&gt;&gt; &gt; sr_check_user = &#39;postgres&#39;<br>
&gt;&gt; &gt;                                    # Streaming replication check user<br>
&gt;&gt; &gt;                                    # This is neccessary even if you<br>
&gt;&gt; disable<br>
&gt;&gt; &gt; streaming<br>
&gt;&gt; &gt;                                    # replication delay check by<br>
&gt;&gt; &gt; sr_check_period = 0<br>
&gt;&gt; &gt; sr_check_password = &#39;xxx&#39;<br>
&gt;&gt; &gt;                                    # Password for streaming replication<br>
&gt;&gt; &gt; check user<br>
&gt;&gt; &gt; delay_threshold = 0<br>
&gt;&gt; &gt;                                    # Threshold before not dispatching<br>
&gt;&gt; query<br>
&gt;&gt; &gt; to standby node<br>
&gt;&gt; &gt;                                    # Unit is in bytes<br>
&gt;&gt; &gt;                                    # Disabled (0) by default<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Special commands -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; follow_master_command = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Executes this command after master<br>
&gt;&gt; &gt; failover<br>
&gt;&gt; &gt;                                    # Special values:<br>
&gt;&gt; &gt;                                    #   %d = node id<br>
&gt;&gt; &gt;                                    #   %h = host name<br>
&gt;&gt; &gt;                                    #   %p = port number<br>
&gt;&gt; &gt;                                    #   %D = database cluster path<br>
&gt;&gt; &gt;                                    #   %m = new master node id<br>
&gt;&gt; &gt;                                    #   %H = hostname of the new master<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    #   %M = old master node id<br>
&gt;&gt; &gt;                                    #   %P = old primary node id<br>
&gt;&gt; &gt;   #   %r = new master port number<br>
&gt;&gt; &gt;   #   %R = new master database cluster path<br>
&gt;&gt; &gt;                                    #   %% = &#39;%&#39; character<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # HEALTH CHECK<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; health_check_period = 5<br>
&gt;&gt; &gt;                                    # Health check period<br>
&gt;&gt; &gt;                                    # Disabled (0) by default<br>
&gt;&gt; &gt; health_check_timeout = 0<br>
&gt;&gt; &gt;                                    # Health check timeout<br>
&gt;&gt; &gt;                                    # 0 means no timeout<br>
&gt;&gt; &gt; health_check_user = &#39;postgres&#39;<br>
&gt;&gt; &gt;                                    # Health check user<br>
&gt;&gt; &gt; health_check_password = &#39;xxx&#39;<br>
&gt;&gt; &gt;                                    # Password for health check user<br>
&gt;&gt; &gt; health_check_max_retries = 0<br>
&gt;&gt; &gt;                                    # Maximum number of times to retry a<br>
&gt;&gt; &gt; failed health check before giving up.<br>
&gt;&gt; &gt; health_check_retry_delay = 1<br>
&gt;&gt; &gt;                                    # Amount of time to wait (in seconds)<br>
&gt;&gt; &gt; between retries.<br>
&gt;&gt; &gt; connect_timeout = 10000<br>
&gt;&gt; &gt;                                    # Timeout value in milliseconds before<br>
&gt;&gt; &gt; giving up to connect to backend.<br>
&gt;&gt; &gt;   # Default is 10000 ms (10 second). Flaky network user may want to<br>
&gt;&gt; increase<br>
&gt;&gt; &gt;   # the value. 0 means no timeout.<br>
&gt;&gt; &gt;   # Note that this value is not only used for health check,<br>
&gt;&gt; &gt;   # but also for ordinary conection to backend.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # FAILOVER AND FAILBACK<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; failover_command = &#39;/usr/local/etc/failover.sh %d %H<br>
&gt;&gt; &gt; /var/log/pgpool/trigger/trigger_file0&#39;<br>
&gt;&gt; &gt;                                    # Executes this command at failover<br>
&gt;&gt; &gt;                                    # Special values:<br>
&gt;&gt; &gt;                                    #   %d = node id<br>
&gt;&gt; &gt;                                    #   %h = host name<br>
&gt;&gt; &gt;                                    #   %p = port number<br>
&gt;&gt; &gt;                                    #   %D = database cluster path<br>
&gt;&gt; &gt;                                    #   %m = new master node id<br>
&gt;&gt; &gt;                                    #   %H = hostname of the new master<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    #   %M = old master node id<br>
&gt;&gt; &gt;                                    #   %P = old primary node id<br>
&gt;&gt; &gt;   #   %r = new master port number<br>
&gt;&gt; &gt;   #   %R = new master database cluster path<br>
&gt;&gt; &gt;                                    #   %% = &#39;%&#39; character<br>
&gt;&gt; &gt; failback_command = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Executes this command at failback.<br>
&gt;&gt; &gt;                                    # Special values:<br>
&gt;&gt; &gt;                                    #   %d = node id<br>
&gt;&gt; &gt;                                    #   %h = host name<br>
&gt;&gt; &gt;                                    #   %p = port number<br>
&gt;&gt; &gt;                                    #   %D = database cluster path<br>
&gt;&gt; &gt;                                    #   %m = new master node id<br>
&gt;&gt; &gt;                                    #   %H = hostname of the new master<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    #   %M = old master node id<br>
&gt;&gt; &gt;                                    #   %P = old primary node id<br>
&gt;&gt; &gt;   #   %r = new master port number<br>
&gt;&gt; &gt;   #   %R = new master database cluster path<br>
&gt;&gt; &gt;                                    #   %% = &#39;%&#39; character<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; fail_over_on_backend_error = on<br>
&gt;&gt; &gt;                                    # Initiates failover when<br>
&gt;&gt; &gt; reading/writing to the<br>
&gt;&gt; &gt;                                    # backend communication socket fails<br>
&gt;&gt; &gt;                                    # If set to off, pgpool will report an<br>
&gt;&gt; &gt;                                    # error and disconnect the session.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; search_primary_node_timeout = 10<br>
&gt;&gt; &gt;                                    # Timeout in seconds to search for the<br>
&gt;&gt; &gt;                                    # primary node when a failover occurs.<br>
&gt;&gt; &gt;                                    # 0 means no timeout, keep searching<br>
&gt;&gt; &gt;                                    # for a primary node forever.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # ONLINE RECOVERY<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; recovery_user = &#39;postgres&#39;<br>
&gt;&gt; &gt;                                    # Online recovery user<br>
&gt;&gt; &gt; recovery_password = &#39;xxx&#39;<br>
&gt;&gt; &gt;                                    # Online recovery password<br>
&gt;&gt; &gt; recovery_1st_stage_command = &#39;recovery_1st_stage&#39;<br>
&gt;&gt; &gt;                                    # Executes a command in first stage<br>
&gt;&gt; &gt; recovery_2nd_stage_command = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Executes a command in second stage<br>
&gt;&gt; &gt; recovery_timeout = 90<br>
&gt;&gt; &gt;                                    # Timeout in seconds to wait for the<br>
&gt;&gt; &gt;                                    # recovering node&#39;s postmaster to<br>
&gt;&gt; start<br>
&gt;&gt; &gt; up<br>
&gt;&gt; &gt;                                    # 0 means no wait<br>
&gt;&gt; &gt; client_idle_limit_in_recovery = 0<br>
&gt;&gt; &gt;                                    # Client is disconnected after being<br>
&gt;&gt; idle<br>
&gt;&gt; &gt;                                    # for that many seconds in the second<br>
&gt;&gt; &gt; stage<br>
&gt;&gt; &gt;                                    # of online recovery<br>
&gt;&gt; &gt;                                    # 0 means no disconnection<br>
&gt;&gt; &gt;                                    # -1 means immediate disconnection<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # WATCHDOG<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Enabling -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; use_watchdog = on<br>
&gt;&gt; &gt;                                     # Activates watchdog<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -Connection to up stream servers -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; trusted_servers = &#39;&#39;<br>
&gt;&gt; &gt;                                     # trusted server list which are used<br>
&gt;&gt; &gt;                                     # to confirm network connection<br>
&gt;&gt; &gt;                                     # (hostA,hostB,hostC,...)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; ping_path = &#39;/bin&#39;<br>
&gt;&gt; &gt;                                     # ping command path<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Watchdog communication Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_hostname = &#39;SUYSevPrepDB01&#39;<br>
&gt;&gt; &gt;                                     # Host name or IP address of this<br>
&gt;&gt; &gt; watchdog<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_port = 9000<br>
&gt;&gt; &gt;                                     # port number for watchdog service<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_authkey = &#39;&#39;<br>
&gt;&gt; &gt;                                     # Authentication key for watchdog<br>
&gt;&gt; &gt; communication<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Virtual IP control Setting -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; delegate_IP = &#39;192.168.140.112&#39;<br>
&gt;&gt; &gt;                                     # delegate IP address<br>
&gt;&gt; &gt;                                     # If this is empty, virtual IP never<br>
&gt;&gt; &gt; bring up.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; ifconfig_path = &#39;/apachebin&#39;<br>
&gt;&gt; &gt;                                     # ifconfig command path<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; if_up_cmd = &#39;ifconfig eth1:0 inet $_IP_$ netmask 255.255.255.0&#39;<br>
&gt;&gt; &gt;                                     # startup delegate IP command<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; if_down_cmd = &#39;ifconfig eth1:0 down&#39;<br>
&gt;&gt; &gt;                                     # shutdown delegate IP command<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; arping_path = &#39;/apachebin&#39;<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; arping_cmd = &#39;arping -I  eth0 -U $_IP_$ -w 1&#39;<br>
&gt;&gt; &gt;                                     # arping command<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Behaivor on escalation Setting -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; clear_memqcache_on_escalation = on<br>
&gt;&gt; &gt;                                     # Clear all the query cache on shared<br>
&gt;&gt; &gt; memory<br>
&gt;&gt; &gt;                                     # when standby pgpool escalate to<br>
&gt;&gt; &gt; active pgpool<br>
&gt;&gt; &gt;                                     # (= virtual IP holder).<br>
&gt;&gt; &gt;                                     # This should be off if client<br>
&gt;&gt; connects<br>
&gt;&gt; &gt; to pgpool<br>
&gt;&gt; &gt;                                     # not using virtual IP.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_escalation_command = &#39;&#39;<br>
&gt;&gt; &gt;                                     # Executes this command at escalation<br>
&gt;&gt; &gt; on new active pgpool.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Lifecheck Setting -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -- common --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_lifecheck_method = &#39;heartbeat&#39;<br>
&gt;&gt; &gt;                                     # Method of watchdog lifecheck<br>
&gt;&gt; &gt; (&#39;heartbeat&#39; or &#39;query&#39;)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_interval = 3<br>
&gt;&gt; &gt;                                     # lifecheck interval (sec) &gt; 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -- heartbeat mode --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_heartbeat_port = 9694<br>
&gt;&gt; &gt;                                     # Port number for receiving heartbeat<br>
&gt;&gt; &gt; signal<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_heartbeat_keepalive = 2<br>
&gt;&gt; &gt;                                     # Interval time of sending heartbeat<br>
&gt;&gt; &gt; signal (sec)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_heartbeat_deadtime = 30<br>
&gt;&gt; &gt;                                     # Deadtime interval for heartbeat<br>
&gt;&gt; &gt; signal (sec)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Host name or IP address of<br>
&gt;&gt; &gt; destination 0<br>
&gt;&gt; &gt;                                     # for sending heartbeat signal.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Port number of destination 0 for<br>
&gt;&gt; &gt; sending<br>
&gt;&gt; &gt;                                     # heartbeat signal. Usually this is<br>
&gt;&gt; the<br>
&gt;&gt; &gt;                                     # same as wd_heartbeat_port.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Name of NIC device (such like<br>
&gt;&gt; &#39;eth0&#39;)<br>
&gt;&gt; &gt;                                     # used for sending/receiving<br>
&gt;&gt; heartbeat<br>
&gt;&gt; &gt;                                     # signal to/from destination 0.<br>
&gt;&gt; &gt;                                     # This works only when this is not<br>
&gt;&gt; empty<br>
&gt;&gt; &gt;                                     # and pgpool has root privilege.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #heartbeat_destination1 = &#39;host0_ip2&#39;<br>
&gt;&gt; &gt; #heartbeat_destination_port1 = 9694<br>
&gt;&gt; &gt; #heartbeat_device1 = &#39;&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -- query mode --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_life_point = 3<br>
&gt;&gt; &gt;                                     # lifecheck retry times<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_query = &#39;SELECT 1&#39;<br>
&gt;&gt; &gt;                                     # lifecheck query to pgpool from<br>
&gt;&gt; &gt; watchdog<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_dbname = &#39;template1&#39;<br>
&gt;&gt; &gt;                                     # Database name connected for<br>
&gt;&gt; lifecheck<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_user = &#39;&#39;<br>
&gt;&gt; &gt;                                     # watchdog user monitoring pgpools in<br>
&gt;&gt; &gt; lifecheck<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_password = &#39;&#39;<br>
&gt;&gt; &gt;                                     # Password for watchdog user in<br>
&gt;&gt; &gt; lifecheck<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Other pgpool Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                                     # Host name or IP address to connect<br>
&gt;&gt; to<br>
&gt;&gt; &gt; for other pgpool 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Port number for othet pgpool 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Port number for othet watchdog 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; #other_pgpool_hostname1 = &#39;host1&#39;<br>
&gt;&gt; &gt; #other_pgpool_port1 = 5432<br>
&gt;&gt; &gt; #other_wd_port1 = 9000<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # OTHERS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; relcache_expire = 0<br>
&gt;&gt; &gt;                                    # Life time of relation cache in<br>
&gt;&gt; seconds.<br>
&gt;&gt; &gt;                                    # 0 means no cache expiration(the<br>
&gt;&gt; &gt; default).<br>
&gt;&gt; &gt;                                    # The relation cache is used for cache<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt;                                    # query result against PostgreSQL<br>
&gt;&gt; system<br>
&gt;&gt; &gt;                                    # catalog to obtain various<br>
&gt;&gt; information<br>
&gt;&gt; &gt;                                    # including table structures or if<br>
&gt;&gt; it&#39;s a<br>
&gt;&gt; &gt;                                    # temporary table or not. The cache is<br>
&gt;&gt; &gt;                                    # maintained in a pgpool child local<br>
&gt;&gt; &gt; memory<br>
&gt;&gt; &gt;                                    # and being kept as long as it<br>
&gt;&gt; survives.<br>
&gt;&gt; &gt;                                    # If someone modify the table by using<br>
&gt;&gt; &gt;                                    # ALTER TABLE or some such, the<br>
&gt;&gt; relcache<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt;                                    # not consistent anymore.<br>
&gt;&gt; &gt;                                    # For this purpose, cache_expiration<br>
&gt;&gt; &gt;                                    # controls the life time of the cache.<br>
&gt;&gt; &gt; relcache_size = 256<br>
&gt;&gt; &gt;                                    # Number of relation cache<br>
&gt;&gt; &gt;                                    # entry. If you see frequently:<br>
&gt;&gt; &gt;   # &quot;pool_search_relcache: cache replacement happend&quot;<br>
&gt;&gt; &gt;   # in the pgpool log, you might want to increate this number.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; check_temp_table = on<br>
&gt;&gt; &gt;                                    # If on, enable temporary table check<br>
&gt;&gt; in<br>
&gt;&gt; &gt; SELECT statements.<br>
&gt;&gt; &gt;                                    # This initiates queries against<br>
&gt;&gt; system<br>
&gt;&gt; &gt; catalog of primary/master<br>
&gt;&gt; &gt;   # thus increases load of master.<br>
&gt;&gt; &gt;   # If you are absolutely sure that your system never uses temporary<br>
&gt;&gt; tables<br>
&gt;&gt; &gt;   # and you want to save access to primary/master, you could turn this<br>
&gt;&gt; off.<br>
&gt;&gt; &gt;   # Default is on.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; check_unlogged_table = off<br>
&gt;&gt; &gt;                                    # If on, enable unlogged table check<br>
&gt;&gt; in<br>
&gt;&gt; &gt; SELECT statements.<br>
&gt;&gt; &gt;                                    # This initiates queries against<br>
&gt;&gt; system<br>
&gt;&gt; &gt; catalog of primary/master<br>
&gt;&gt; &gt;                                    # thus increases load of master.<br>
&gt;&gt; &gt;                                    # If you are absolutely sure that your<br>
&gt;&gt; &gt; system never uses unlogged tables<br>
&gt;&gt; &gt;                                    # and you want to save access to<br>
&gt;&gt; &gt; primary/master, you could turn this off.<br>
&gt;&gt; &gt;                                    # Default is on.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # IN MEMORY QUERY MEMORY CACHE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; memory_cache_enabled = off<br>
&gt;&gt; &gt;   # If on, use the memory cache functionality, off by default<br>
&gt;&gt; &gt; memqcache_method = &#39;shmem&#39;<br>
&gt;&gt; &gt;   # Cache storage method. either &#39;shmem&#39;(shared memory) or<br>
&gt;&gt; &gt;   # &#39;memcached&#39;. &#39;shmem&#39; by default<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_memcached_host = &#39;localhost&#39;<br>
&gt;&gt; &gt;   # Memcached host name or IP address. Mandatory if<br>
&gt;&gt; &gt;   # memqcache_method = &#39;memcached&#39;.<br>
&gt;&gt; &gt;   # Defaults to localhost.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_memcached_port = 11211<br>
&gt;&gt; &gt;   # Memcached port number. Mondatory if memqcache_method = &#39;memcached&#39;.<br>
&gt;&gt; &gt;   # Defaults to 11211.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_total_size = 67108864<br>
&gt;&gt; &gt;   # Total memory size in bytes for storing memory cache.<br>
&gt;&gt; &gt;   # Mandatory if memqcache_method = &#39;shmem&#39;.<br>
&gt;&gt; &gt;   # Defaults to 64MB.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_max_num_cache = 1000000<br>
&gt;&gt; &gt;   # Total number of cache entries. Mandatory<br>
&gt;&gt; &gt;   # if memqcache_method = &#39;shmem&#39;.<br>
&gt;&gt; &gt;   # Each cache entry consumes 48 bytes on shared memory.<br>
&gt;&gt; &gt;   # Defaults to 1,000,000(45.8MB).<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_expire = 0<br>
&gt;&gt; &gt;   # Memory cache entry life time specified in seconds.<br>
&gt;&gt; &gt;   # 0 means infinite life time. 0 by default.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_auto_cache_invalidation = on<br>
&gt;&gt; &gt;   # If on, invalidation of query cache is triggered by corresponding<br>
&gt;&gt; &gt;   # DDL/DML/DCL(and memqcache_expire).  If off, it is only triggered<br>
&gt;&gt; &gt;   # by memqcache_expire.  on by default.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_maxcache = 409600<br>
&gt;&gt; &gt;   # Maximum SELECT result size in bytes.<br>
&gt;&gt; &gt;   # Must be smaller than memqcache_cache_block_size. Defaults to 400KB.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_cache_block_size = 1048576<br>
&gt;&gt; &gt;   # Cache block size in bytes. Mandatory if memqcache_method = &#39;shmem&#39;.<br>
&gt;&gt; &gt;   # Defaults to 1MB.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_oiddir = &#39;/var/log/pgpool/oiddir&#39;<br>
&gt;&gt; &gt;     # Temporary work directory to record table oids<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; white_memqcache_table_list = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of table names<br>
&gt;&gt; to<br>
&gt;&gt; &gt; memcache<br>
&gt;&gt; &gt;                                    # that don&#39;t write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt; black_memqcache_table_list = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of table names<br>
&gt;&gt; &gt; not to memcache<br>
&gt;&gt; &gt;                                    # that don&#39;t write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt; ssl_key = &#39;&#39;<br>
&gt;&gt; &gt; ssl_cert = &#39;&#39;<br>
&gt;&gt; &gt; ssl_ca_cert = &#39;&#39;<br>
&gt;&gt; &gt; ssl_ca_cert_dir = &#39;&#39;<br>
&gt;&gt; &gt; log_error_verbosity = &#39;DEFAULT&#39;<br>
&gt;&gt; &gt; client_min_messages = &#39;debug2&#39;<br>
&gt;&gt; &gt; log_min_messages = &#39;debug2&#39;<br>
&gt;&gt; &gt; backend_hostname0 = &#39;SUYSevPrepDB01&#39;<br>
&gt;&gt; &gt; backend_port0 = 5432<br>
&gt;&gt; &gt; backend_weight0 = 1<br>
&gt;&gt; &gt; backend_data_directory0 = &#39;/var/lib/pgsql/9.4/data&#39;<br>
&gt;&gt; &gt; backend_flag0= &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;&gt; &gt; backend_hostname1 = &#39;SUYSevPrepDB02&#39;<br>
&gt;&gt; &gt; backend_port1 = 5432<br>
&gt;&gt; &gt; backend_weight1 = 1<br>
&gt;&gt; &gt; backend_data_directory1 = &#39;/var/lib/pgsql/9.4/data&#39;<br>
&gt;&gt; &gt; backend_flag1= &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;&gt; &gt; other_pgpool_hostname0 = &#39;SUYSevPrepDB02&#39;<br>
&gt;&gt; &gt; other_pgpool_port0 = 9999<br>
&gt;&gt; &gt; other_wd_port0 = 9000<br>
&gt;&gt; &gt; heartbeat_destination0 = &#39;SUYSevPrepDB02&#39;<br>
&gt;&gt; &gt; heartbeat_destination_port0 = 9694<br>
&gt;&gt; &gt; heartbeat_device0 = &#39;&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # use another authentication method.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # TYPE  DATABASE        USER            ADDRESS                 METHOD<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # &quot;local&quot; is for Unix domain socket connections only<br>
&gt;&gt; &gt; local   all             all                                     md5<br>
&gt;&gt; &gt; # IPv4 local connections:<br>
&gt;&gt; &gt; host    all             all             <a href="http://127.0.0.1/32" rel="noreferrer" target="_blank">127.0.0.1/32</a>            md5<br>
&gt;&gt; &gt; host    all             all             <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>               md5<br>
&gt;&gt; &gt; # IPv6 local connections:<br>
&gt;&gt; &gt; # Allow replication connections from localhost, by a user with the<br>
&gt;&gt; &gt; # replication privilege.<br>
&gt;&gt; &gt; local   replication     postgres                                trust<br>
&gt;&gt; &gt; host    replication     replication        <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>            trust<br>
&gt;&gt; &gt; #host    replication     postgres        ::1/128                 trust<br>
&gt;&gt; &gt; &quot;9.4/data/pg_hba.conf&quot; 93L, 4422C<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Slave pgpool.conf and pg_hba.conf<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # ----------------------------<br>
&gt;&gt; &gt; # pgPool-II configuration file<br>
&gt;&gt; &gt; # ----------------------------<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; # This file consists of lines of the form:<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; #   name = value<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; # Whitespace may be used.  Comments are introduced with &quot;#&quot; anywhere on a<br>
&gt;&gt; &gt; line.<br>
&gt;&gt; &gt; # The complete list of parameter names and allowed values can be found in<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; # pgPool-II documentation.<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt; # This file is read on server startup and when the server receives a<br>
&gt;&gt; SIGHUP<br>
&gt;&gt; &gt; # signal.  If you edit the file on a running system, you have to SIGHUP<br>
&gt;&gt; the<br>
&gt;&gt; &gt; # server for the changes to take effect, or use &quot;pgpool reload&quot;.  Some<br>
&gt;&gt; &gt; # parameters, which are marked below, require a server shutdown and<br>
&gt;&gt; restart<br>
&gt;&gt; &gt; to<br>
&gt;&gt; &gt; # take effect.<br>
&gt;&gt; &gt; #<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # CONNECTIONS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - pgpool Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; listen_addresses = &#39;*&#39;<br>
&gt;&gt; &gt;                                    # Host name or IP address to listen<br>
&gt;&gt; on:<br>
&gt;&gt; &gt;                                    # &#39;*&#39; for all, &#39;&#39; for no TCP/IP<br>
&gt;&gt; &gt; connections<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; port = 9999<br>
&gt;&gt; &gt;                                    # Port number<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; socket_dir = &#39;/tmp&#39;<br>
&gt;&gt; &gt;                                    # Unix domain socket path<br>
&gt;&gt; &gt;                                    # The Debian package defaults to<br>
&gt;&gt; &gt;                                    # /var/run/postgresql<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - pgpool Communication Manager Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; pcp_listen_addresses = &#39;*&#39;<br>
&gt;&gt; &gt;                                    # Host name or IP address for pcp<br>
&gt;&gt; &gt; process to listen on:<br>
&gt;&gt; &gt;                                    # &#39;*&#39; for all, &#39;&#39; for no TCP/IP<br>
&gt;&gt; &gt; connections<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; pcp_port = 9898<br>
&gt;&gt; &gt;                                    # Port number for pcp<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; pcp_socket_dir = &#39;/tmp&#39;<br>
&gt;&gt; &gt;                                    # Unix domain socket path for pcp<br>
&gt;&gt; &gt;                                    # The Debian package defaults to<br>
&gt;&gt; &gt;                                    # /var/run/postgresql<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; listen_backlog_multiplier = 2<br>
&gt;&gt; &gt;                                    # Set the backlog parameter of<br>
&gt;&gt; listen(2)<br>
&gt;&gt; &gt; to<br>
&gt;&gt; &gt;   # num_init_children * listen_backlog_multiplier.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Backend Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                                    # Host name or IP address to connect<br>
&gt;&gt; to<br>
&gt;&gt; &gt; for backend 0<br>
&gt;&gt; &gt;                                    # Port number for backend 0<br>
&gt;&gt; &gt;                                    # Weight for backend 0 (only in load<br>
&gt;&gt; &gt; balancing mode)<br>
&gt;&gt; &gt;                                    # Data directory for backend 0<br>
&gt;&gt; &gt;                                    # Controls various backend behavior<br>
&gt;&gt; &gt;                                    # ALLOW_TO_FAILOVER or<br>
&gt;&gt; &gt; DISALLOW_TO_FAILOVER<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Authentication -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; enable_pool_hba = on<br>
&gt;&gt; &gt;                                    # Use pool_hba.conf for client<br>
&gt;&gt; &gt; authentication<br>
&gt;&gt; &gt; pool_passwd = &#39;pool_passwd&#39;<br>
&gt;&gt; &gt;                                    # File name of pool_passwd for md5<br>
&gt;&gt; &gt; authentication.<br>
&gt;&gt; &gt;                                    # &quot;&quot; disables pool_passwd.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; authentication_timeout = 60<br>
&gt;&gt; &gt;                                    # Delay in seconds to complete client<br>
&gt;&gt; &gt; authentication<br>
&gt;&gt; &gt;                                    # 0 means no timeout.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - SSL Connections -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ssl = off<br>
&gt;&gt; &gt;                                    # Enable SSL support<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_key = &#39;./server.key&#39;<br>
&gt;&gt; &gt;                                    # Path to the SSL private key file<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_cert = &#39;./server.cert&#39;<br>
&gt;&gt; &gt;                                    # Path to the SSL public certificate<br>
&gt;&gt; file<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_ca_cert = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Path to a single PEM format file<br>
&gt;&gt; &gt;                                    # containing CA root certificate(s)<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; #ssl_ca_cert_dir = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Directory containing CA root<br>
&gt;&gt; &gt; certificate(s)<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # POOLS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Pool size -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; num_init_children = 32<br>
&gt;&gt; &gt;                                    # Number of pools<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; max_pool = 4<br>
&gt;&gt; &gt;                                    # Number of connections per pool<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Life time -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; child_life_time = 300<br>
&gt;&gt; &gt;                                    # Pool exits after being idle for this<br>
&gt;&gt; &gt; many seconds<br>
&gt;&gt; &gt; child_max_connections = 0<br>
&gt;&gt; &gt;                                    # Pool exits after receiving that many<br>
&gt;&gt; &gt; connections<br>
&gt;&gt; &gt;                                    # 0 means no exit<br>
&gt;&gt; &gt; connection_life_time = 0<br>
&gt;&gt; &gt;                                    # Connection to backend closes after<br>
&gt;&gt; &gt; being idle for this many seconds<br>
&gt;&gt; &gt;                                    # 0 means no close<br>
&gt;&gt; &gt; client_idle_limit = 0<br>
&gt;&gt; &gt;                                    # Client is disconnected after being<br>
&gt;&gt; &gt; idle for that many seconds<br>
&gt;&gt; &gt;                                    # (even inside an explicit<br>
&gt;&gt; transactions!)<br>
&gt;&gt; &gt;                                    # 0 means no disconnection<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # LOGS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Where to log -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_destination = &#39;syslog&#39;<br>
&gt;&gt; &gt;                                    # Where to log<br>
&gt;&gt; &gt;                                    # Valid values are combinations of<br>
&gt;&gt; &gt; stderr,<br>
&gt;&gt; &gt;                                    # and syslog. Default to stderr.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - What to log -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_line_prefix = &#39;%t: pid %p:    # printf-style string to output at<br>
&gt;&gt; &gt; beginning of each log line.&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_connections = off<br>
&gt;&gt; &gt;                                    # Log connections<br>
&gt;&gt; &gt; log_hostname = on<br>
&gt;&gt; &gt;                                    # Hostname will be shown in ps status<br>
&gt;&gt; &gt;                                    # and in logs if connections are<br>
&gt;&gt; logged<br>
&gt;&gt; &gt; log_statement = on<br>
&gt;&gt; &gt;                                    # Log all statements<br>
&gt;&gt; &gt; log_per_node_statement = on<br>
&gt;&gt; &gt;                                    # Log all statements<br>
&gt;&gt; &gt;                                    # with node and backend informations<br>
&gt;&gt; &gt; log_standby_delay = &#39;if_over_threshold&#39;<br>
&gt;&gt; &gt;                                    # Log standby delay<br>
&gt;&gt; &gt;                                    # Valid values are combinations of<br>
&gt;&gt; &gt; always,<br>
&gt;&gt; &gt;                                    # if_over_threshold, none<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Syslog specific -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; syslog_facility = &#39;LOCAL0&#39;<br>
&gt;&gt; &gt;                                    # Syslog local facility. Default to<br>
&gt;&gt; &gt; LOCAL0<br>
&gt;&gt; &gt; syslog_ident = &#39;pgpool&#39;<br>
&gt;&gt; &gt;                                    # Syslog program identification string<br>
&gt;&gt; &gt;                                    # Default to &#39;pgpool&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Debug -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; debug_level = 2<br>
&gt;&gt; &gt;                                    # Debug message verbosity level<br>
&gt;&gt; &gt;                                    # 0 means no message, 1 or more mean<br>
&gt;&gt; &gt; verbose<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #log_error_verbosity = default          # terse, default, or verbose<br>
&gt;&gt; &gt; messages<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #client_min_messages = notice           # values in order of decreasing<br>
&gt;&gt; &gt; detail:<br>
&gt;&gt; &gt;                                         #   debug5<br>
&gt;&gt; &gt;                                         #   debug4<br>
&gt;&gt; &gt;                                         #   debug3<br>
&gt;&gt; &gt;                                         #   debug2<br>
&gt;&gt; &gt;                                         #   debug1<br>
&gt;&gt; &gt;                                         #   log<br>
&gt;&gt; &gt;                                         #   notice<br>
&gt;&gt; &gt;                                         #   warning<br>
&gt;&gt; &gt;                                         #   error<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #log_min_messages = warning             # values in order of decreasing<br>
&gt;&gt; &gt; detail:<br>
&gt;&gt; &gt;                                         #   debug5<br>
&gt;&gt; &gt;                                         #   debug4<br>
&gt;&gt; &gt;                                         #   debug3<br>
&gt;&gt; &gt;                                         #   debug2<br>
&gt;&gt; &gt;                                         #   debug1<br>
&gt;&gt; &gt;                                         #   info<br>
&gt;&gt; &gt;                                         #   notice<br>
&gt;&gt; &gt;                                         #   warning<br>
&gt;&gt; &gt;                                         #   error<br>
&gt;&gt; &gt;                                         #   log<br>
&gt;&gt; &gt;                                         #   fatal<br>
&gt;&gt; &gt;                                         #   panic<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # FILE LOCATIONS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; pid_file_name = &#39;/var/run/pgpool/pgpool.pid&#39;<br>
&gt;&gt; &gt;                                    # PID file name<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; logdir = &#39;/tmp&#39;<br>
&gt;&gt; &gt;                                    # Directory of pgPool status file<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # CONNECTION POOLING<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; connection_cache = on<br>
&gt;&gt; &gt;                                    # Activate connection pools<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                                    # Semicolon separated list of queries<br>
&gt;&gt; &gt;                                    # to be issued at the end of a session<br>
&gt;&gt; &gt;                                    # The default is for 8.3 and later<br>
&gt;&gt; &gt; reset_query_list = &#39;ABORT; DISCARD ALL&#39;<br>
&gt;&gt; &gt;                                    # The following one is for 8.2 and<br>
&gt;&gt; before<br>
&gt;&gt; &gt; #reset_query_list = &#39;ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # REPLICATION MODE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; replication_mode = off<br>
&gt;&gt; &gt;                                    # Activate replication mode<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; replicate_select = off<br>
&gt;&gt; &gt;                                    # Replicate SELECT statements<br>
&gt;&gt; &gt;                                    # when in replication mode<br>
&gt;&gt; &gt;                                    # replicate_select is higher priority<br>
&gt;&gt; &gt; than<br>
&gt;&gt; &gt;                                    # load_balance_mode.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; insert_lock = off<br>
&gt;&gt; &gt;                                    # Automatically locks a dummy row or a<br>
&gt;&gt; &gt; table<br>
&gt;&gt; &gt;                                    # with INSERT statements to keep<br>
&gt;&gt; SERIAL<br>
&gt;&gt; &gt; data<br>
&gt;&gt; &gt;                                    # consistency<br>
&gt;&gt; &gt;                                    # Without SERIAL, no lock will be<br>
&gt;&gt; issued<br>
&gt;&gt; &gt; lobj_lock_table = &#39;&#39;<br>
&gt;&gt; &gt;                                    # When rewriting lo_creat command in<br>
&gt;&gt; &gt;                                    # replication mode, specify table<br>
&gt;&gt; name to<br>
&gt;&gt; &gt;                                    # lock<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Degenerate handling -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; replication_stop_on_mismatch = off<br>
&gt;&gt; &gt;                                    # On disagreement with the packet kind<br>
&gt;&gt; &gt;                                    # sent from backend, degenerate the<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    # which is most likely &quot;minority&quot;<br>
&gt;&gt; &gt;                                    # If off, just force to exit this<br>
&gt;&gt; session<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; failover_if_affected_tuples_mismatch = off<br>
&gt;&gt; &gt;                                    # On disagreement with the number of<br>
&gt;&gt; &gt; affected<br>
&gt;&gt; &gt;                                    # tuples in UPDATE/DELETE queries,<br>
&gt;&gt; then<br>
&gt;&gt; &gt;                                    # degenerate the node which is most<br>
&gt;&gt; &gt; likely<br>
&gt;&gt; &gt;                                    # &quot;minority&quot;.<br>
&gt;&gt; &gt;                                    # If off, just abort the transaction<br>
&gt;&gt; to<br>
&gt;&gt; &gt;                                    # keep the consistency<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # LOAD BALANCING MODE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; load_balance_mode = on<br>
&gt;&gt; &gt;                                    # Activate load balancing mode<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; ignore_leading_white_space = on<br>
&gt;&gt; &gt;                                    # Ignore leading white spaces of each<br>
&gt;&gt; &gt; query<br>
&gt;&gt; &gt; white_function_list = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of function<br>
&gt;&gt; names<br>
&gt;&gt; &gt;                                    # that don&#39;t write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt; black_function_list = &#39;currval,lastval,nextval,setval&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of function<br>
&gt;&gt; names<br>
&gt;&gt; &gt;                                    # that write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; database_redirect_preference_list = &#39;&#39;<br>
&gt;&gt; &gt;   # comma separated list of pairs of database and node id.<br>
&gt;&gt; &gt;   # example: postgres:primary,mydb[0-4]:1,mydb[5-9]:2&#39;<br>
&gt;&gt; &gt;   # valid for streaming replicaton mode only.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; app_name_redirect_preference_list = &#39;&#39;<br>
&gt;&gt; &gt;   # comma separated list of pairs of app name and node id.<br>
&gt;&gt; &gt;   # example: &#39;psql:primary,myapp[0-4]:1,myapp[5-9]:standby&#39;<br>
&gt;&gt; &gt;   # valid for streaming replicaton mode only.<br>
&gt;&gt; &gt; allow_sql_comments = off<br>
&gt;&gt; &gt;   # if on, ignore SQL comments when judging if load balance or<br>
&gt;&gt; &gt;   # query cache is possible.<br>
&gt;&gt; &gt;   # If off, SQL comments effectively prevent the judgment<br>
&gt;&gt; &gt;   # (pre 3.4 behavior).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # MASTER/SLAVE MODE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; master_slave_mode = on<br>
&gt;&gt; &gt;                                    # Activate master/slave mode<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; master_slave_sub_mode = &#39;stream&#39;<br>
&gt;&gt; &gt;                                    # Master/slave sub mode<br>
&gt;&gt; &gt;                                    # Valid values are combinations slony<br>
&gt;&gt; or<br>
&gt;&gt; &gt;                                    # stream. Default is slony.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Streaming -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; sr_check_period = 0<br>
&gt;&gt; &gt;                                    # Streaming replication check period<br>
&gt;&gt; &gt;                                    # Disabled (0) by default<br>
&gt;&gt; &gt; sr_check_user = &#39;postgres&#39;<br>
&gt;&gt; &gt;                                    # Streaming replication check user<br>
&gt;&gt; &gt;                                    # This is neccessary even if you<br>
&gt;&gt; disable<br>
&gt;&gt; &gt; streaming<br>
&gt;&gt; &gt;                                    # replication delay check by<br>
&gt;&gt; &gt; sr_check_period = 0<br>
&gt;&gt; &gt; sr_check_password = &#39;xxx&#39;<br>
&gt;&gt; &gt;                                    # Password for streaming replication<br>
&gt;&gt; &gt; check user<br>
&gt;&gt; &gt; delay_threshold = 0<br>
&gt;&gt; &gt;                                    # Threshold before not dispatching<br>
&gt;&gt; query<br>
&gt;&gt; &gt; to standby node<br>
&gt;&gt; &gt;                                    # Unit is in bytes<br>
&gt;&gt; &gt;                                    # Disabled (0) by default<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Special commands -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; follow_master_command = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Executes this command after master<br>
&gt;&gt; &gt; failover<br>
&gt;&gt; &gt;                                    # Special values:<br>
&gt;&gt; &gt;                                    #   %d = node id<br>
&gt;&gt; &gt;                                    #   %h = host name<br>
&gt;&gt; &gt;                                    #   %p = port number<br>
&gt;&gt; &gt;                                    #   %D = database cluster path<br>
&gt;&gt; &gt;                                    #   %m = new master node id<br>
&gt;&gt; &gt;                                    #   %H = hostname of the new master<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    #   %M = old master node id<br>
&gt;&gt; &gt;                                    #   %P = old primary node id<br>
&gt;&gt; &gt;   #   %r = new master port number<br>
&gt;&gt; &gt;   #   %R = new master database cluster path<br>
&gt;&gt; &gt;                                    #   %% = &#39;%&#39; character<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # HEALTH CHECK<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; health_check_period = 5<br>
&gt;&gt; &gt;                                    # Health check period<br>
&gt;&gt; &gt;                                    # Disabled (0) by default<br>
&gt;&gt; &gt; health_check_timeout = 0<br>
&gt;&gt; &gt;                                    # Health check timeout<br>
&gt;&gt; &gt;                                    # 0 means no timeout<br>
&gt;&gt; &gt; health_check_user = &#39;postgres&#39;<br>
&gt;&gt; &gt;                                    # Health check user<br>
&gt;&gt; &gt; health_check_password = &#39;xxx&#39;<br>
&gt;&gt; &gt;                                    # Password for health check user<br>
&gt;&gt; &gt; health_check_max_retries = 0<br>
&gt;&gt; &gt;                                    # Maximum number of times to retry a<br>
&gt;&gt; &gt; failed health check before giving up.<br>
&gt;&gt; &gt; health_check_retry_delay = 1<br>
&gt;&gt; &gt;                                    # Amount of time to wait (in seconds)<br>
&gt;&gt; &gt; between retries.<br>
&gt;&gt; &gt; connect_timeout = 10000<br>
&gt;&gt; &gt;                                    # Timeout value in milliseconds before<br>
&gt;&gt; &gt; giving up to connect to backend.<br>
&gt;&gt; &gt;   # Default is 10000 ms (10 second). Flaky network user may want to<br>
&gt;&gt; increase<br>
&gt;&gt; &gt;   # the value. 0 means no timeout.<br>
&gt;&gt; &gt;   # Note that this value is not only used for health check,<br>
&gt;&gt; &gt;   # but also for ordinary conection to backend.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # FAILOVER AND FAILBACK<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; failover_command = &#39;/usr/local/etc/failover.sh %d %H<br>
&gt;&gt; &gt; /var/log/pgpool/trigger/trigger_file0&#39;<br>
&gt;&gt; &gt;                                    # Executes this command at failover<br>
&gt;&gt; &gt;                                    # Special values:<br>
&gt;&gt; &gt;                                    #   %d = node id<br>
&gt;&gt; &gt;                                    #   %h = host name<br>
&gt;&gt; &gt;                                    #   %p = port number<br>
&gt;&gt; &gt;                                    #   %D = database cluster path<br>
&gt;&gt; &gt;                                    #   %m = new master node id<br>
&gt;&gt; &gt;                                    #   %H = hostname of the new master<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    #   %M = old master node id<br>
&gt;&gt; &gt;                                    #   %P = old primary node id<br>
&gt;&gt; &gt;   #   %r = new master port number<br>
&gt;&gt; &gt;   #   %R = new master database cluster path<br>
&gt;&gt; &gt;                                    #   %% = &#39;%&#39; character<br>
&gt;&gt; &gt; failback_command = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Executes this command at failback.<br>
&gt;&gt; &gt;                                    # Special values:<br>
&gt;&gt; &gt;                                    #   %d = node id<br>
&gt;&gt; &gt;                                    #   %h = host name<br>
&gt;&gt; &gt;                                    #   %p = port number<br>
&gt;&gt; &gt;                                    #   %D = database cluster path<br>
&gt;&gt; &gt;                                    #   %m = new master node id<br>
&gt;&gt; &gt;                                    #   %H = hostname of the new master<br>
&gt;&gt; node<br>
&gt;&gt; &gt;                                    #   %M = old master node id<br>
&gt;&gt; &gt;                                    #   %P = old primary node id<br>
&gt;&gt; &gt;   #   %r = new master port number<br>
&gt;&gt; &gt;   #   %R = new master database cluster path<br>
&gt;&gt; &gt;                                    #   %% = &#39;%&#39; character<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; fail_over_on_backend_error = on<br>
&gt;&gt; &gt;                                    # Initiates failover when<br>
&gt;&gt; &gt; reading/writing to the<br>
&gt;&gt; &gt;                                    # backend communication socket fails<br>
&gt;&gt; &gt;                                    # If set to off, pgpool will report an<br>
&gt;&gt; &gt;                                    # error and disconnect the session.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; search_primary_node_timeout = 10<br>
&gt;&gt; &gt;                                    # Timeout in seconds to search for the<br>
&gt;&gt; &gt;                                    # primary node when a failover occurs.<br>
&gt;&gt; &gt;                                    # 0 means no timeout, keep searching<br>
&gt;&gt; &gt;                                    # for a primary node forever.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # ONLINE RECOVERY<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; recovery_user = &#39;postgres&#39;<br>
&gt;&gt; &gt;                                    # Online recovery user<br>
&gt;&gt; &gt; recovery_password = &#39;xxx&#39;<br>
&gt;&gt; &gt;                                    # Online recovery password<br>
&gt;&gt; &gt; recovery_1st_stage_command = &#39;recovery_1st_stage&#39;<br>
&gt;&gt; &gt;                                    # Executes a command in first stage<br>
&gt;&gt; &gt; recovery_2nd_stage_command = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Executes a command in second stage<br>
&gt;&gt; &gt; recovery_timeout = 90<br>
&gt;&gt; &gt;                                    # Timeout in seconds to wait for the<br>
&gt;&gt; &gt;                                    # recovering node&#39;s postmaster to<br>
&gt;&gt; start<br>
&gt;&gt; &gt; up<br>
&gt;&gt; &gt;                                    # 0 means no wait<br>
&gt;&gt; &gt; client_idle_limit_in_recovery = 0<br>
&gt;&gt; &gt;                                    # Client is disconnected after being<br>
&gt;&gt; idle<br>
&gt;&gt; &gt;                                    # for that many seconds in the second<br>
&gt;&gt; &gt; stage<br>
&gt;&gt; &gt;                                    # of online recovery<br>
&gt;&gt; &gt;                                    # 0 means no disconnection<br>
&gt;&gt; &gt;                                    # -1 means immediate disconnection<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # WATCHDOG<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Enabling -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; use_watchdog = on<br>
&gt;&gt; &gt;                                     # Activates watchdog<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -Connection to up stream servers -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; trusted_servers = &#39;&#39;<br>
&gt;&gt; &gt;                                     # trusted server list which are used<br>
&gt;&gt; &gt;                                     # to confirm network connection<br>
&gt;&gt; &gt;                                     # (hostA,hostB,hostC,...)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; ping_path = &#39;/bin&#39;<br>
&gt;&gt; &gt;                                     # ping command path<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Watchdog communication Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_hostname = &#39;SUYSevPrepDB02&#39;<br>
&gt;&gt; &gt;                                     # Host name or IP address of this<br>
&gt;&gt; &gt; watchdog<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_port = 9000<br>
&gt;&gt; &gt;                                     # port number for watchdog service<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_authkey = &#39;&#39;<br>
&gt;&gt; &gt;                                     # Authentication key for watchdog<br>
&gt;&gt; &gt; communication<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Virtual IP control Setting -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; delegate_IP = &#39;192.168.140.112&#39;<br>
&gt;&gt; &gt;                                     # delegate IP address<br>
&gt;&gt; &gt;                                     # If this is empty, virtual IP never<br>
&gt;&gt; &gt; bring up.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; ifconfig_path = &#39;/apachebin&#39;<br>
&gt;&gt; &gt;                                     # ifconfig command path<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; if_up_cmd = &#39;ifconfig eth1:0 inet $_IP_$ netmask 255.255.255.0&#39;<br>
&gt;&gt; &gt;                                     # startup delegate IP command<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; if_down_cmd = &#39;ifconfig eth1:0 down&#39;<br>
&gt;&gt; &gt;                                     # shutdown delegate IP command<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; arping_path = &#39;/apachebin&#39;<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; arping_cmd = &#39;arping -I  eth0 -U $_IP_$ -w 1&#39;<br>
&gt;&gt; &gt;                                     # arping command<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Behaivor on escalation Setting -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; clear_memqcache_on_escalation = on<br>
&gt;&gt; &gt;                                     # Clear all the query cache on shared<br>
&gt;&gt; &gt; memory<br>
&gt;&gt; &gt;                                     # when standby pgpool escalate to<br>
&gt;&gt; &gt; active pgpool<br>
&gt;&gt; &gt;                                     # (= virtual IP holder).<br>
&gt;&gt; &gt;                                     # This should be off if client<br>
&gt;&gt; connects<br>
&gt;&gt; &gt; to pgpool<br>
&gt;&gt; &gt;                                     # not using virtual IP.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_escalation_command = &#39;&#39;<br>
&gt;&gt; &gt;                                     # Executes this command at escalation<br>
&gt;&gt; &gt; on new active pgpool.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Lifecheck Setting -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -- common --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_lifecheck_method = &#39;heartbeat&#39;<br>
&gt;&gt; &gt;                                     # Method of watchdog lifecheck<br>
&gt;&gt; &gt; (&#39;heartbeat&#39; or &#39;query&#39;)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_interval = 3<br>
&gt;&gt; &gt;                                     # lifecheck interval (sec) &gt; 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -- heartbeat mode --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_heartbeat_port = 9694<br>
&gt;&gt; &gt;                                     # Port number for receiving heartbeat<br>
&gt;&gt; &gt; signal<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_heartbeat_keepalive = 2<br>
&gt;&gt; &gt;                                     # Interval time of sending heartbeat<br>
&gt;&gt; &gt; signal (sec)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_heartbeat_deadtime = 30<br>
&gt;&gt; &gt;                                     # Deadtime interval for heartbeat<br>
&gt;&gt; &gt; signal (sec)<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Host name or IP address of<br>
&gt;&gt; &gt; destination 0<br>
&gt;&gt; &gt;                                     # for sending heartbeat signal.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Port number of destination 0 for<br>
&gt;&gt; &gt; sending<br>
&gt;&gt; &gt;                                     # heartbeat signal. Usually this is<br>
&gt;&gt; the<br>
&gt;&gt; &gt;                                     # same as wd_heartbeat_port.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Name of NIC device (such like<br>
&gt;&gt; &#39;eth0&#39;)<br>
&gt;&gt; &gt;                                     # used for sending/receiving<br>
&gt;&gt; heartbeat<br>
&gt;&gt; &gt;                                     # signal to/from destination 0.<br>
&gt;&gt; &gt;                                     # This works only when this is not<br>
&gt;&gt; empty<br>
&gt;&gt; &gt;                                     # and pgpool has root privilege.<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #heartbeat_destination1 = &#39;host0_ip2&#39;<br>
&gt;&gt; &gt; #heartbeat_destination_port1 = 9694<br>
&gt;&gt; &gt; #heartbeat_device1 = &#39;&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # -- query mode --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; wd_life_point = 3<br>
&gt;&gt; &gt;                                     # lifecheck retry times<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_query = &#39;SELECT 1&#39;<br>
&gt;&gt; &gt;                                     # lifecheck query to pgpool from<br>
&gt;&gt; &gt; watchdog<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_dbname = &#39;template1&#39;<br>
&gt;&gt; &gt;                                     # Database name connected for<br>
&gt;&gt; lifecheck<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_user = &#39;&#39;<br>
&gt;&gt; &gt;                                     # watchdog user monitoring pgpools in<br>
&gt;&gt; &gt; lifecheck<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; wd_lifecheck_password = &#39;&#39;<br>
&gt;&gt; &gt;                                     # Password for watchdog user in<br>
&gt;&gt; &gt; lifecheck<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # - Other pgpool Connection Settings -<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                                     # Host name or IP address to connect<br>
&gt;&gt; to<br>
&gt;&gt; &gt; for other pgpool 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Port number for othet pgpool 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt;                                     # Port number for othet watchdog 0<br>
&gt;&gt; &gt;                                     # (change requires restart)<br>
&gt;&gt; &gt; #other_pgpool_hostname1 = &#39;host1&#39;<br>
&gt;&gt; &gt; #other_pgpool_port1 = 5432<br>
&gt;&gt; &gt; #other_wd_port1 = 9000<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # OTHERS<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; relcache_expire = 0<br>
&gt;&gt; &gt;                                    # Life time of relation cache in<br>
&gt;&gt; seconds.<br>
&gt;&gt; &gt;                                    # 0 means no cache expiration(the<br>
&gt;&gt; &gt; default).<br>
&gt;&gt; &gt;                                    # The relation cache is used for cache<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt;                                    # query result against PostgreSQL<br>
&gt;&gt; system<br>
&gt;&gt; &gt;                                    # catalog to obtain various<br>
&gt;&gt; information<br>
&gt;&gt; &gt;                                    # including table structures or if<br>
&gt;&gt; it&#39;s a<br>
&gt;&gt; &gt;                                    # temporary table or not. The cache is<br>
&gt;&gt; &gt;                                    # maintained in a pgpool child local<br>
&gt;&gt; &gt; memory<br>
&gt;&gt; &gt;                                    # and being kept as long as it<br>
&gt;&gt; survives.<br>
&gt;&gt; &gt;                                    # If someone modify the table by using<br>
&gt;&gt; &gt;                                    # ALTER TABLE or some such, the<br>
&gt;&gt; relcache<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt;                                    # not consistent anymore.<br>
&gt;&gt; &gt;                                    # For this purpose, cache_expiration<br>
&gt;&gt; &gt;                                    # controls the life time of the cache.<br>
&gt;&gt; &gt; relcache_size = 256<br>
&gt;&gt; &gt;                                    # Number of relation cache<br>
&gt;&gt; &gt;                                    # entry. If you see frequently:<br>
&gt;&gt; &gt;   # &quot;pool_search_relcache: cache replacement happend&quot;<br>
&gt;&gt; &gt;   # in the pgpool log, you might want to increate this number.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; check_temp_table = on<br>
&gt;&gt; &gt;                                    # If on, enable temporary table check<br>
&gt;&gt; in<br>
&gt;&gt; &gt; SELECT statements.<br>
&gt;&gt; &gt;                                    # This initiates queries against<br>
&gt;&gt; system<br>
&gt;&gt; &gt; catalog of primary/master<br>
&gt;&gt; &gt;   # thus increases load of master.<br>
&gt;&gt; &gt;   # If you are absolutely sure that your system never uses temporary<br>
&gt;&gt; tables<br>
&gt;&gt; &gt;   # and you want to save access to primary/master, you could turn this<br>
&gt;&gt; off.<br>
&gt;&gt; &gt;   # Default is on.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; check_unlogged_table = off<br>
&gt;&gt; &gt;                                    # If on, enable unlogged table check<br>
&gt;&gt; in<br>
&gt;&gt; &gt; SELECT statements.<br>
&gt;&gt; &gt;                                    # This initiates queries against<br>
&gt;&gt; system<br>
&gt;&gt; &gt; catalog of primary/master<br>
&gt;&gt; &gt;                                    # thus increases load of master.<br>
&gt;&gt; &gt;                                    # If you are absolutely sure that your<br>
&gt;&gt; &gt; system never uses unlogged tables<br>
&gt;&gt; &gt;                                    # and you want to save access to<br>
&gt;&gt; &gt; primary/master, you could turn this off.<br>
&gt;&gt; &gt;                                    # Default is on.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; # IN MEMORY QUERY MEMORY CACHE<br>
&gt;&gt; &gt;<br>
&gt;&gt; #------------------------------------------------------------------------------<br>
&gt;&gt; &gt; memory_cache_enabled = off<br>
&gt;&gt; &gt;   # If on, use the memory cache functionality, off by default<br>
&gt;&gt; &gt; memqcache_method = &#39;shmem&#39;<br>
&gt;&gt; &gt;   # Cache storage method. either &#39;shmem&#39;(shared memory) or<br>
&gt;&gt; &gt;   # &#39;memcached&#39;. &#39;shmem&#39; by default<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_memcached_host = &#39;localhost&#39;<br>
&gt;&gt; &gt;   # Memcached host name or IP address. Mandatory if<br>
&gt;&gt; &gt;   # memqcache_method = &#39;memcached&#39;.<br>
&gt;&gt; &gt;   # Defaults to localhost.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_memcached_port = 11211<br>
&gt;&gt; &gt;   # Memcached port number. Mondatory if memqcache_method = &#39;memcached&#39;.<br>
&gt;&gt; &gt;   # Defaults to 11211.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_total_size = 67108864<br>
&gt;&gt; &gt;   # Total memory size in bytes for storing memory cache.<br>
&gt;&gt; &gt;   # Mandatory if memqcache_method = &#39;shmem&#39;.<br>
&gt;&gt; &gt;   # Defaults to 64MB.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_max_num_cache = 1000000<br>
&gt;&gt; &gt;   # Total number of cache entries. Mandatory<br>
&gt;&gt; &gt;   # if memqcache_method = &#39;shmem&#39;.<br>
&gt;&gt; &gt;   # Each cache entry consumes 48 bytes on shared memory.<br>
&gt;&gt; &gt;   # Defaults to 1,000,000(45.8MB).<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_expire = 0<br>
&gt;&gt; &gt;   # Memory cache entry life time specified in seconds.<br>
&gt;&gt; &gt;   # 0 means infinite life time. 0 by default.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_auto_cache_invalidation = on<br>
&gt;&gt; &gt;   # If on, invalidation of query cache is triggered by corresponding<br>
&gt;&gt; &gt;   # DDL/DML/DCL(and memqcache_expire).  If off, it is only triggered<br>
&gt;&gt; &gt;   # by memqcache_expire.  on by default.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_maxcache = 409600<br>
&gt;&gt; &gt;   # Maximum SELECT result size in bytes.<br>
&gt;&gt; &gt;   # Must be smaller than memqcache_cache_block_size. Defaults to 400KB.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_cache_block_size = 1048576<br>
&gt;&gt; &gt;   # Cache block size in bytes. Mandatory if memqcache_method = &#39;shmem&#39;.<br>
&gt;&gt; &gt;   # Defaults to 1MB.<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; memqcache_oiddir = &#39;/var/log/pgpool/oiddir&#39;<br>
&gt;&gt; &gt;     # Temporary work directory to record table oids<br>
&gt;&gt; &gt;                                    # (change requires restart)<br>
&gt;&gt; &gt; white_memqcache_table_list = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of table names<br>
&gt;&gt; to<br>
&gt;&gt; &gt; memcache<br>
&gt;&gt; &gt;                                    # that don&#39;t write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt; black_memqcache_table_list = &#39;&#39;<br>
&gt;&gt; &gt;                                    # Comma separated list of table names<br>
&gt;&gt; &gt; not to memcache<br>
&gt;&gt; &gt;                                    # that don&#39;t write to database<br>
&gt;&gt; &gt;                                    # Regexp are accepted<br>
&gt;&gt; &gt; ssl_key = &#39;&#39;<br>
&gt;&gt; &gt; ssl_cert = &#39;&#39;<br>
&gt;&gt; &gt; ssl_ca_cert = &#39;&#39;<br>
&gt;&gt; &gt; ssl_ca_cert_dir = &#39;&#39;<br>
&gt;&gt; &gt; log_error_verbosity = &#39;DEFAULT&#39;<br>
&gt;&gt; &gt; client_min_messages = &#39;notice&#39;<br>
&gt;&gt; &gt; log_min_messages = &#39;warning&#39;<br>
&gt;&gt; &gt; backend_hostname0 = &#39;SUYSevPrepDB01&#39;<br>
&gt;&gt; &gt; backend_port0 = 5432<br>
&gt;&gt; &gt; backend_weight0 = 1<br>
&gt;&gt; &gt; backend_data_directory0 = &#39;/var/lib/pgsql/9.4/data&#39;<br>
&gt;&gt; &gt; backend_flag0= &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;&gt; &gt; backend_hostname1 = &#39;SUYSevPrepDB02&#39;<br>
&gt;&gt; &gt; backend_port1 = 5432<br>
&gt;&gt; &gt; backend_weight1 = 1<br>
&gt;&gt; &gt; backend_data_directory1 = &#39;/var/lib/pgsql/9.4/data&#39;<br>
&gt;&gt; &gt; backend_flag1= &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;&gt; &gt; other_pgpool_hostname0 = &#39;SUYSevPrepDB01&#39;<br>
&gt;&gt; &gt; other_pgpool_port0 = 9999<br>
&gt;&gt; &gt; other_wd_port0 = 9000<br>
&gt;&gt; &gt; heartbeat_destination0 = &#39;SUYSevPrepDB01&#39;<br>
&gt;&gt; &gt; heartbeat_destination_port0 = 9694<br>
&gt;&gt; &gt; heartbeat_device0 = &#39;&#39;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # TYPE  DATABASE        USER            ADDRESS                 METHOD<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # &quot;local&quot; is for Unix domain socket connections only<br>
&gt;&gt; &gt; local   all             all                                     md5<br>
&gt;&gt; &gt; # IPv4 local connections:<br>
&gt;&gt; &gt; host    all             all             <a href="http://127.0.0.1/32" rel="noreferrer" target="_blank">127.0.0.1/32</a>            md5<br>
&gt;&gt; &gt; host    all             all             <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>               md5<br>
&gt;&gt; &gt; # IPv6 local connections:<br>
&gt;&gt; &gt; # Allow replication connections from localhost, by a user with the<br>
&gt;&gt; &gt; # replication privilege.<br>
&gt;&gt; &gt; local   replication     postgres                                trust<br>
&gt;&gt; &gt; host    replication     replication        <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>            trust<br>
&gt;&gt; &gt; #host    replication     postgres        ::1/128                 trust<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2016-04-07 19:31 GMT-03:00 Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt;:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; *DETALLE:  message length (12) in slot 1 does not match with slot<br>
&gt;&gt; 0(8)*<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Probably a configuration mismatch in PostgreSQL server #0 and<br>
&gt;&gt; &gt;&gt; PostgreSQL server #1. From reading the message above, server #0 asks<br>
&gt;&gt; &gt;&gt; trust authentication (no password), while server #1 requires certain<br>
&gt;&gt; &gt;&gt; authentication (possibly md5). Showing full pgpool.conf and<br>
&gt;&gt; &gt;&gt; pg_hba.conf from both PostgreSQL servers will reveal this.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Tatsuo Ishii<br>
&gt;&gt; &gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; &gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; &gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Lucas is the same error!!!!<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Apr 7 16:14:24 localhost pgpool[14839]: [40-1] 2016-04-07 16:14:24:<br>
&gt;&gt; pid<br>
&gt;&gt; &gt;&gt; &gt; 14839: # printf-style string to output at beginning of each log<br>
&gt;&gt; &gt;&gt; line.ERROR:<br>
&gt;&gt; &gt;&gt; &gt; unable to read message length<br>
&gt;&gt; &gt;&gt; &gt; Apr 7 16:14:24 localhost pgpool[14839]: [40-2] 2016-04-07 16:14:24:<br>
&gt;&gt; pid<br>
&gt;&gt; &gt;&gt; &gt; 14839: # printf-style string to output at beginning of each log<br>
&gt;&gt; &gt;&gt; &gt; line.DETAIL: message length (12) in slot 1 does not match with slot 0<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; 2016-04-07 15:52 GMT-03:00 Lucas Luengas &lt;<a href="mailto:lucasluengas@gmail.com">lucasluengas@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Hello<br>
&gt;&gt; &gt;&gt; &gt;&gt; You can check pgpool log and postgresql log when you run that psql<br>
&gt;&gt; &gt;&gt; command.<br>
&gt;&gt; &gt;&gt; &gt;&gt; Regards.<br>
&gt;&gt; &gt;&gt; &gt;&gt; On Apr 6, 2016 8:30 PM, &quot;Daniel Gallo&quot; &lt;<a href="mailto:danielito.gallo@gmail.com">danielito.gallo@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Dear I&#39;m trying to run the following and I get the following error<br>
&gt;&gt; and<br>
&gt;&gt; &gt;&gt; I<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; can not figure out what the problem is , I could help ?<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Any information that need be notified me and sent them<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Thanks a lots!!!!!<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; -bash-4.2$ psql -h localhost -U postgres -p 5432<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; psql (9.4.4)<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Digite «help» para obtener ayuda.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; postgres=#<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; *-bash-4.2$ psql -h localhost -U postgres -p 9999*<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; *psql: ERROR:  unable to read message length*<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; *DETALLE:  message length (12) in slot 1 does not match with slot<br>
&gt;&gt; 0(8)*<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Any idea?<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
</div></div>&gt;&gt; &gt;&gt; &gt;&gt;&gt; *pg_hba.conf*<br>
<span class="">&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # TYPE  DATABASE        USER            ADDRESS<br>
&gt;&gt;  METHOD<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # &quot;local&quot; is for Unix domain socket connections only<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; local   all             all                                     md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # IPv4 local connections:<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; host    all             all             <a href="http://127.0.0.1/32" rel="noreferrer" target="_blank">127.0.0.1/32</a>            md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; host    all             all             <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>               md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # IPv6 local connections:<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # Allow replication connections from localhost, by a user with the<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # replication privilege.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; local   replication     postgres<br>
&gt;&gt; trust<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; host    replication     replication        <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a><br>
&gt;&gt; trust<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; #host    replication     postgres        ::1/128<br>
&gt;&gt;  trust<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
</span><span class="">&gt;&gt; &gt;&gt; &gt;&gt;&gt; -rwxrw-r--. 1 apache apache 33283 abr  1 15:49 pgpool.conf<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; *pgpool.conf*<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
</span><span class="">&gt;&gt; &gt;&gt; &gt;&gt;&gt; # - Authentication -<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; enable_pool_hba = on<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;                                    # Use pool_hba.conf for client<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; authentication<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; pool_passwd = &#39;pool_passwd&#39;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;                                    # File name of pool_passwd for<br>
&gt;&gt; md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; authentication.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;                                    # &quot;&quot; disables pool_passwd.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;                                    # (change requires restart)<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; authentication_timeout = 60<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;                                    # Delay in seconds to complete<br>
&gt;&gt; &gt;&gt; client<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; authentication<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;                                    # 0 means no timeout.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
</span><span class="">&gt;&gt; &gt;&gt; &gt;&gt;&gt; -rw-r--r--. 1 apache root      42 feb 29 18:28 pool_passwd<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; postgres:5c0435eee0f211f150e980e459151xxx<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; -rwxrw-r--. 1 root   root    3295 mar  3 18:19 pool_hba.conf<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
</span>&gt;&gt; &gt;&gt; &gt;&gt;&gt; # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD<br>
<span class="im HOEnZb">&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # &quot;local&quot; is for Unix domain socket connections only<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; local   all         all                               md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; # IPv4 local connections:<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; host    all         all         <a href="http://127.0.0.1/32" rel="noreferrer" target="_blank">127.0.0.1/32</a>          md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; host    all         all         <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>             md5<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
</span><div class="HOEnZb"><div class="h5">&gt;&gt; &gt;&gt; &gt;&gt;&gt; #host    all         all         ::1/128               trust<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; pgpool-general mailing list<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div>