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