pgpool2.git
4 years agoFix watchdog leader sync process to start health check process.
Tatsuo Ishii [Mon, 8 Feb 2021 11:30:18 +0000 (20:30 +0900)]
Fix watchdog leader sync process to start health check process.

When watchdog receives status change request from other watchdog node
and calls sync_backend_from_watchdog() to sync with status of leader
node, it forgot to start health check process. For example,

1) initial pgpool_status file indicates DB node 1 is down.
2) pgpool starts up but only starts health check process for DB node 0
   because node 1 is in down status.
3) pcp_attach_node is issued to other than leader pgpool node.
4) leader node updates the node status for DB node 1 and other node
   syncs the status. Since sync_backend_from_watchdog() does not start
   health check process, only on pgpool leader node starts health
   check process but other nodes do not.

To fix this starts health check process if necessary in
sync_backend_from_watchdog().

4 years agoDoc: fix watchdog_setup manual.
Tatsuo Ishii [Sat, 6 Feb 2021 08:48:09 +0000 (17:48 +0900)]
Doc: fix watchdog_setup manual.

Add snapshot isolation mode to the "mode" parameter which was
forgotten when adding the mode.

4 years agoFix follow_primary.sh creation in pgpool_setup.
Tatsuo Ishii [Fri, 5 Feb 2021 07:36:41 +0000 (16:36 +0900)]
Fix follow_primary.sh creation in pgpool_setup.

While creating the script, it did not update restore_command to point
to the primary's archive directory.

4 years agoAdd support for snapshot isolation mode.
Tatsuo Ishii [Thu, 4 Feb 2021 03:23:58 +0000 (12:23 +0900)]
Add support for snapshot isolation mode.

Also add "wal_level = archive" to all modes except streaming
replication mode to deal with online recovery enhancement.

4 years agoFix that DB cluster path was not correct in watchdog_setup installation.
Tatsuo Ishii [Thu, 4 Feb 2021 02:28:57 +0000 (11:28 +0900)]
Fix that DB cluster path was not correct in watchdog_setup installation.

In the watchdog_setup installation generated path to DB clusters did
not correctly point to pgpool0/data0 etc. Correct them by using sed
command.

4 years agoFix typos in message emitted by sync_backend_from_watchdog().
Tatsuo Ishii [Wed, 3 Feb 2021 08:01:23 +0000 (17:01 +0900)]
Fix typos in message emitted by sync_backend_from_watchdog().

4 years agoEnhance pgpool_setup.
Tatsuo Ishii [Tue, 2 Feb 2021 14:12:37 +0000 (23:12 +0900)]
Enhance pgpool_setup.

"shutdownall" script unconditionally waited for the pgpool.pid file is
gone after "pgpool stop".  But if invalid pgpool.pid file exists, it
waits forever. To avoid this check the exit status of "pgpool stop"
and only wait if the exit status is 0.

4 years agoFix missing displaying of backend_clustering_mode mode in "show pool_status" command.
Bo Peng [Tue, 2 Feb 2021 02:54:56 +0000 (11:54 +0900)]
Fix missing displaying of backend_clustering_mode mode in "show pool_status" command.

4 years agoFix messages when health check process starts.
Tatsuo Ishii [Tue, 2 Feb 2021 00:56:23 +0000 (09:56 +0900)]
Fix messages when health check process starts.

Fix when health check process was restarted by reaper(), incorrect
"child process with pid: 14639 exited with success and will not be
restarted" was emitted.

Also enhance worker_fork_a_child() to emit a message that new worker
process started.

4 years agoDoc: update failover command parameters order.
Bo Peng [Mon, 1 Feb 2021 16:10:56 +0000 (01:10 +0900)]
Doc: update failover command parameters order.

4 years agoDoc: mention that the sample scripts doesn't support tablespaces in "Pgpool-II +...
Bo Peng [Mon, 1 Feb 2021 14:29:29 +0000 (23:29 +0900)]
Doc: mention that the sample scripts doesn't support tablespaces in "Pgpool-II + Watchdog Setup Example".

4 years agoFix oversight in commit 3a36284c53c125389c999de5c6c4710973c4cb82.
Tatsuo Ishii [Sun, 31 Jan 2021 02:27:47 +0000 (11:27 +0900)]
Fix oversight in commit 3a36284c53c125389c999de5c6c4710973c4cb82.

When si_get_snapshot() is called, load balance node has not been
decided yet and we cannot use VALID_BACKEND macro.  Use
VALID_BACKEND_RAW instead.

4 years agoFix segfault in snapshot isolation mode.
Tatsuo Ishii [Thu, 28 Jan 2021 09:01:28 +0000 (18:01 +0900)]
Fix segfault in snapshot isolation mode.

If one DB nodes goes down, pgpool segfaulted in the mode. This
happened in si_get_snapshot(). This was caused because it did not
check whether DB node is alive or not.

4 years agoFix pgpool_setup so that it creates separate archive directory for each DB node.
Tatsuo Ishii [Sun, 24 Jan 2021 02:55:12 +0000 (11:55 +0900)]
Fix pgpool_setup so that it creates separate archive directory for each DB node.

pgpool_setup created single archive directory for all PostgreSQL
nodes. This only works with streaming replication because only the
primary node produces archive log. However for native replication and
snapshot isolation mode this does not work as each node produces WAL.

In this fix dedicated archive directories like archivedir/data0
archivedir/data1 and so on are created.

4 years agoDoc: enhance online recovery document.
Tatsuo Ishii [Fri, 22 Jan 2021 06:05:33 +0000 (15:05 +0900)]
Doc: enhance online recovery document.

Add explanation what should be done in the recovery first stage and
second stage. Also add mention about snapshot isolation mode where
native replication mode is explained.

Remove accidentally left caution of script timeout in the Japanese
document.

4 years agoFix pgpool_recovery_pitr generation pgpool_setup.
Tatsuo Ishii [Fri, 22 Jan 2021 04:33:07 +0000 (13:33 +0900)]
Fix pgpool_recovery_pitr generation pgpool_setup.

It generated redundant psql definition line.

4 years agoDoc: fix indent.
Bo Peng [Thu, 21 Jan 2021 07:46:05 +0000 (16:46 +0900)]
Doc: fix indent.

4 years agoFix some variable names in follow_primary.sh.sample.
Bo Peng [Thu, 21 Jan 2021 07:00:40 +0000 (16:00 +0900)]
Fix some variable names in follow_primary.sh.sample.

Fix some variable names of "main" to "primary" which should be used in streaming replication mode.

4 years agoEnhance follow_primary.sh generation in pgpool_setup.
Tatsuo Ishii [Wed, 20 Jan 2021 08:17:02 +0000 (17:17 +0900)]
Enhance follow_primary.sh generation in pgpool_setup.

In the generated follow primary script pcp_recovery_node was used to
sync standby with new primary node.  However it is sufficient in
follow primary process to just restart standby with new recovery
configuration redirected to the new primary because we use the
"latest" timeline in the configuration file.

Moreover, from PostgreSQL 13, even restarting standby is not
needed. Just changing the recovery configuration and reloading is
enough. With these changes it is expected that the follow primary
process could be significantly faster than before.

4 years agoDoc: add explanation about the shared memory required by shared relation cache.
Tatsuo Ishii [Sat, 16 Jan 2021 10:15:57 +0000 (19:15 +0900)]
Doc: add explanation about the shared memory required by shared relation cache.

Add description to "Memory requirement" section so that in Pgpool-II
4.1 and after require additional shared memory for shared relation
cache.

4 years agoAdjusting the allowed range and default value for log_rotation_size
Muhammad Usama [Wed, 13 Jan 2021 10:55:28 +0000 (15:55 +0500)]
Adjusting the allowed range and default value for log_rotation_size

4 years agoFix error while allocating shared memory.
Tatsuo Ishii [Wed, 13 Jan 2021 09:49:51 +0000 (18:49 +0900)]
Fix error while allocating shared memory.

If num_init_children * max_pool is huge, pool_coninfo_size() failed to
calculate the size of required shared memory because the data type
used for the variable to store shared memory size was int and it
overflows for too large shared memory size. To fix this change
pool_coninfo_size() to size_t and use appropriate size_t for the
variable used within the function.

Also fix to use proper format qualifier in
pool_shared_memory_create().

4 years agoDoc: fix typos.
Bo Peng [Wed, 13 Jan 2021 00:18:56 +0000 (09:18 +0900)]
Doc: fix typos.

4 years agoFix follow_primary script creation in pgpool_setup.
Tatsuo Ishii [Tue, 12 Jan 2021 01:40:06 +0000 (10:40 +0900)]
Fix follow_primary script creation in pgpool_setup.

There were some confusions in variable names due to recent language
fix.  This fixes some of "main" to "primary" which should be used in
streaming replication mode.

4 years agoFix bug child_max_connections is not respected if ERROR occurs.
Tatsuo Ishii [Fri, 1 Jan 2021 02:29:04 +0000 (11:29 +0900)]
Fix bug child_max_connections is not respected if ERROR occurs.

When frontend aborts, the counter for child_max_connections is rewound
because ereport(ERROR) issues long jump. Fix is declaring the variable
with volatile qualifier. This is a long standing bug, probably since
child_max_connections was introduced.

4 years agoDoc: fix typos.
Bo Peng [Sun, 27 Dec 2020 12:44:00 +0000 (21:44 +0900)]
Doc: fix typos.

4 years agoDoc: fix typos in docs.
Bo Peng [Sun, 27 Dec 2020 12:24:54 +0000 (21:24 +0900)]
Doc: fix typos in docs.

4 years agoDoc: fix a few typos in Japanese release notes.
Tatsuo Ishii [Sat, 26 Dec 2020 05:41:27 +0000 (14:41 +0900)]
Doc: fix a few typos in Japanese release notes.

4 years agoDoc: few typo fixes.
Muhammad Usama [Fri, 25 Dec 2020 18:25:10 +0000 (23:25 +0500)]
Doc: few typo fixes.

4 years agoDoc: fix typo in the 4.2.1 release note.
Tatsuo Ishii [Wed, 23 Dec 2020 11:41:23 +0000 (20:41 +0900)]
Doc: fix typo in the 4.2.1 release note.

4 years agoPrepare 4.2.1. V4_2_1 V4_2_1_RPM
Bo Peng [Wed, 23 Dec 2020 06:14:36 +0000 (15:14 +0900)]
Prepare 4.2.1.

4 years agoDoc: update doc version.
Bo Peng [Wed, 23 Dec 2020 06:14:20 +0000 (15:14 +0900)]
Doc: update doc version.

4 years agoDoc: add 4.2.1 release note.
Bo Peng [Wed, 23 Dec 2020 06:09:36 +0000 (15:09 +0900)]
Doc: add 4.2.1 release note.

4 years agoChange all of the pgpool.conf samples socket path to "/var/run/postgresql".
Bo Peng [Tue, 22 Dec 2020 12:10:28 +0000 (21:10 +0900)]
Change all of the pgpool.conf samples socket path to "/var/run/postgresql".

4 years agoDoc: Add missing raw mode to "5.3. Clustering mode" and fix typos.
Bo Peng [Tue, 22 Dec 2020 04:52:01 +0000 (13:52 +0900)]
Doc: Add missing raw mode to "5.3. Clustering mode" and fix typos.

4 years agoDoc: fix indent.
Bo Peng [Tue, 22 Dec 2020 02:23:49 +0000 (11:23 +0900)]
Doc: fix indent.

4 years agoFix incorrect heartbeat related results of "pcp_pool_status" and "SHOW POOL_STATUS...
Bo Peng [Sun, 20 Dec 2020 15:45:41 +0000 (00:45 +0900)]
Fix incorrect heartbeat related results of "pcp_pool_status" and "SHOW POOL_STATUS" commands.

4 years agoDoc: fix installation tips section example.
Tatsuo Ishii [Fri, 18 Dec 2020 07:01:13 +0000 (16:01 +0900)]
Doc: fix installation tips section example.

Previous commit was not sufficient.

4 years agoDoc: fix usage of firewall-cmd in the installation tips section.
Tatsuo Ishii [Fri, 18 Dec 2020 06:54:48 +0000 (15:54 +0900)]
Doc: fix usage of firewall-cmd in the installation tips section.

firewall-cmd opened unnecessary ports in the example.

4 years agoUse single shared memory segment for all shared variables in Pgpool parent process
Muhammad Usama [Mon, 14 Dec 2020 10:41:37 +0000 (15:41 +0500)]
Use single shared memory segment for all shared variables in Pgpool parent process

Shared memory segments is a limited resource and opening too many segments
should be avoided.
Also the default limit for on some operating systems like
OS/X (kern.sysv.shmmni: 32) is very small that you have to increase
shmmni just to run Pgpool-II. 
So to avoid creating too many shared memory segments, the commit creates a
single shared memory segment big enough to hold all required shared memory
and put all shared memory variables within that segment one after the other.

4 years agoFix segfault when ALWAYS_PRIMARY is set but DISALLOW_TO_FAILOVER.
Tatsuo Ishii [Tue, 15 Dec 2020 10:38:04 +0000 (19:38 +0900)]
Fix segfault when ALWAYS_PRIMARY is set but DISALLOW_TO_FAILOVER.

If a primary node (for example node 0) has ALWAYS_PRIMARY but does
have DISALLOW_TO_FAILOVER, segfault happens in following step:

1) node 0 stops

2) failover happens. all children restart. The primary node is still 0
because ALWAYS_PRIMARY is set.

2) node 0 starts and it becomes online by using pcp_attach_node.

3) failback process is executed but child process do not restart.

4) child process accesses node 0 because Req_info->primary_node_id is
0 but connection to node 0 does not exist and this causes segfault.

To fix this, do additional check to make sure that failback node is
not former primary node. If it is, do full restart of child process.

Per bug 672.

4 years agoDoc: fix missing configuration example of clustering mode.
Bo Peng [Tue, 15 Dec 2020 07:58:06 +0000 (16:58 +0900)]
Doc: fix missing configuration example of clustering mode.

4 years agoDoc: more language fixes.
Tatsuo Ishii [Tue, 15 Dec 2020 01:50:04 +0000 (10:50 +0900)]
Doc: more language fixes.

4 years agoFix for inconsistent watchdog node_id problem in wd_cli
Muhammad Usama [Mon, 14 Dec 2020 14:50:08 +0000 (19:50 +0500)]
Fix for inconsistent watchdog node_id problem in wd_cli

In watchdog node_id = 0 was reserved for local watchdog node
before 'simplifying watchdog configuration' patch, Now the watchdog
node IDshave become consistent across the cluster, but a couple of
places in the code were still expecting that node_id = 0 would
mean local node.

4 years agoFix "no watchdog configuration for local pgpool node" error.
Tatsuo Ishii [Sun, 13 Dec 2020 08:08:08 +0000 (17:08 +0900)]
Fix "no watchdog configuration for local pgpool node" error.

If watchdog is disabled and wd_port is not defined (thus it's 0, which
is the default config value), the error occurred while checking
configured watchdog nodes. If watchdog is disabled, the check should
not be performed. Back patch to V4.2 stable when watchdog local node
was introduced.

4 years agoFix segfault in child pgpool process in certain failback case.
Tatsuo Ishii [Sun, 13 Dec 2020 02:29:36 +0000 (11:29 +0900)]
Fix segfault in child pgpool process in certain failback case.

When previous primary node id is 0 and then it went down, restarted,
re-attached without promotion. Then existing child process loses
connection slot to node 0 and keeps on using it when node 0 comes
back. This could result in segfault later on in the child process
because there's no connection to node id 0. In summary we need to
restart all pgppol children in this case.

Per bug 672.

4 years agoDelete any pre-existing watchdog command socket file at startup
Muhammad Usama [Tue, 8 Dec 2020 10:00:11 +0000 (15:00 +0500)]
Delete any pre-existing watchdog command socket file at startup

Abnormal termination of Pgpool leaves behind the dangling socket files
and prevent Pgpool-II from starting up.
The solution is to delete any pre-existing watchdog command socket
file before binding a watchdog command socket.

Patch provided by Masaya Kawamoto

4 years agoFix compiler error on FreeBSD.
Tatsuo Ishii [Fri, 4 Dec 2020 08:04:30 +0000 (17:04 +0900)]
Fix compiler error on FreeBSD.

Per bug report 670.
https://www.pgpool.net/mantisbt/view.php?id=670
Patch provided by ajs.

4 years agoFix compiler error due to the previous commit.
Bo Peng [Wed, 2 Dec 2020 00:20:38 +0000 (09:20 +0900)]
Fix compiler error due to the previous commit.

4 years agoAdd error message to the previous commit.
Bo Peng [Mon, 30 Nov 2020 04:28:10 +0000 (13:28 +0900)]
Add error message to the previous commit.

4 years agoFix file swapping race condition in pool_passwd.
Tatsuo Ishii [Mon, 30 Nov 2020 04:01:52 +0000 (13:01 +0900)]
Fix file swapping race condition in pool_passwd.

Existing implementation first stats pool passwd file and then open the
file. To prevent file-swapping due to file race conditions, open the
key file before checking it by stat().

Patch by: Masaya Kawamoto

4 years agoPrepare 4.2.0. V4_2_0 V4_2_0_RPM
Bo Peng [Thu, 26 Nov 2020 01:10:28 +0000 (10:10 +0900)]
Prepare 4.2.0.

4 years agoDoc: update release-note.
Bo Peng [Thu, 26 Nov 2020 00:55:23 +0000 (09:55 +0900)]
Doc: update release-note.

4 years agoDoc: update image files.
Bo Peng [Wed, 25 Nov 2020 16:19:34 +0000 (01:19 +0900)]
Doc: update image files.

4 years agoDoc: add documentation of "Pgpool-II on Kubernetes".
Bo Peng [Wed, 25 Nov 2020 15:55:55 +0000 (00:55 +0900)]
Doc: add documentation of "Pgpool-II on Kubernetes".

4 years agoRemoving strerror() call from ereports.
Muhammad Usama [Tue, 24 Nov 2020 16:39:26 +0000 (21:39 +0500)]
Removing strerror() call from ereports.

Call to ereport() resets the errno value and using the "strerror(errno)"
emmits the wrong error message. The right way is to use
%m format specifier instead.
 

4 years agoFix pgpool_setup to extract correct PostgreSQL version.
Bo Peng [Tue, 24 Nov 2020 05:19:48 +0000 (14:19 +0900)]
Fix pgpool_setup to extract correct PostgreSQL version.

4 years agoDoc: fix log_standy_delay description.
Tatsuo Ishii [Fri, 20 Nov 2020 01:10:45 +0000 (10:10 +0900)]
Doc: fix log_standy_delay description.

The description failed to explain actual behavior when
log_standy_delay = always is set. In fact it does not log if the
streaming delay is not greater than 0. Also added that 'none' is the
compiled default. Removed duplicate description in Japanese doc.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2020-November/003849.html

4 years agoDoc: add release note.
Bo Peng [Tue, 17 Nov 2020 08:23:53 +0000 (17:23 +0900)]
Doc: add release note.

4 years agoFix query rewrite syntax error of "INSERT ... ON CONFLICT" in native replication...
Bo Peng [Tue, 17 Nov 2020 03:45:37 +0000 (12:45 +0900)]
Fix query rewrite syntax error of "INSERT ... ON CONFLICT" in native replication mode.

per bug 654.

4 years agoDoc: update "Aurora Configuration Example".
Bo Peng [Mon, 16 Nov 2020 15:04:53 +0000 (00:04 +0900)]
Doc: update "Aurora Configuration Example".

4 years agoSuppress a Coverity complain.
Tatsuo Ishii [Thu, 12 Nov 2020 06:23:17 +0000 (15:23 +0900)]
Suppress a Coverity complain.

Cid = 1395058 (Unused value).

4 years agoDoc: fix missing description of pgpool.conf samples.
Bo Peng [Sun, 8 Nov 2020 13:28:25 +0000 (22:28 +0900)]
Doc: fix missing description of pgpool.conf samples.

4 years agoFix connection count when query is canceled.
Tatsuo Ishii [Thu, 29 Oct 2020 20:59:23 +0000 (05:59 +0900)]
Fix connection count when query is canceled.

Connection counter was not counted down when a query is canceled.

Per bug 656.

4 years agoPrepare 4.2beta1. V4_2_0_BETA1 V4_2_0_BETA1_RPM
Bo Peng [Tue, 27 Oct 2020 05:32:09 +0000 (14:32 +0900)]
Prepare 4.2beta1.

4 years agoUpdate Makefile.
Bo Peng [Tue, 27 Oct 2020 05:24:27 +0000 (14:24 +0900)]
Update Makefile.

4 years agoDoc: update release note.
Bo Peng [Tue, 27 Oct 2020 05:04:47 +0000 (14:04 +0900)]
Doc: update release note.

4 years agoDoc: add escalation.sh sample script that is executed by wd_escalation_command.
Bo Peng [Tue, 27 Oct 2020 04:55:46 +0000 (13:55 +0900)]
Doc: add escalation.sh sample script that is executed by wd_escalation_command.

Patch is created by Kawamoto Masaya.

4 years agoUse list_delete_cell instead of list_delete_ptr in some places.
Bo Peng [Mon, 26 Oct 2020 11:08:08 +0000 (20:08 +0900)]
Use list_delete_cell instead of list_delete_ptr in some places.

Patch is created by Hou, Zhijie.

4 years agoDoc: fix incorrect description about load balancing.
Tatsuo Ishii [Sun, 25 Oct 2020 13:12:48 +0000 (22:12 +0900)]
Doc: fix incorrect description about load balancing.

5 years agoDoc: fix typo in release 4.2 doc.
Tatsuo Ishii [Wed, 7 Oct 2020 10:32:07 +0000 (19:32 +0900)]
Doc: fix typo in release 4.2 doc.

Also change supposed-to-be-released month from October to November
because it is more likely to happen.

5 years agoPrepare 4.2alpha1. V4_2_0_ALPHA1
Bo Peng [Tue, 6 Oct 2020 06:09:20 +0000 (15:09 +0900)]
Prepare 4.2alpha1.

5 years agoDisable AM_MAINTAINER_MODE.
Bo Peng [Tue, 6 Oct 2020 05:45:48 +0000 (14:45 +0900)]
Disable AM_MAINTAINER_MODE.

5 years agoDoc: update 4.2 release note.
Bo Peng [Tue, 6 Oct 2020 05:10:44 +0000 (14:10 +0900)]
Doc: update 4.2 release note.

5 years agoDoc: update watchdog related documentation and remove "8.2. Watchdog Configuration...
Bo Peng [Sun, 4 Oct 2020 14:49:33 +0000 (23:49 +0900)]
Doc: update watchdog related documentation and remove "8.2. Watchdog Configuration Example".

5 years agoDoc: mention that GSSAPI is not supported.
Tatsuo Ishii [Sat, 3 Oct 2020 01:29:30 +0000 (10:29 +0900)]
Doc: mention that GSSAPI is not supported.

5 years agoDeal with GSSAPI encrypted connection request from frontend.
Tatsuo Ishii [Sat, 3 Oct 2020 00:09:41 +0000 (09:09 +0900)]
Deal with GSSAPI encrypted connection request from frontend.

If GSSAPI connection request comes from frontend, Pgpool-II responded
in inappropriate way.  For example,

psql: error: could not connect to server: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

or even:
FATAL:  client authentication failed
DETAIL:  no pool_hba.conf entry for host "x.x.x.x", user "", database "", SSL off
(https://www.pgpool.net/pipermail/pgpool-general/2020-September/007353.html)

With this commit Pgpool-II responds better. i.e. replies back to
frontend with "we don't support GSSAPI" and expects that the frontend
falls back to SSL connection (if frontend's param: gssencmode=prefer
(default) and SSL is configure when Pgpool-II was built) or fals back
to non-SSL connection.

Patch by me, reviewed and tested by Umar Hayat.

5 years agoAdd validation for pgpool_node_id file.
Bo Peng [Thu, 1 Oct 2020 05:22:32 +0000 (14:22 +0900)]
Add validation for pgpool_node_id file.

5 years agoFix test 032.dml_adaptive_load_balance failure.
Bo Peng [Wed, 30 Sep 2020 07:20:35 +0000 (16:20 +0900)]
Fix test 032.dml_adaptive_load_balance failure.

5 years agoDoc: fix index dupication.
Tatsuo Ishii [Wed, 30 Sep 2020 05:10:51 +0000 (14:10 +0900)]
Doc: fix index dupication.

This is caused by former slony mode was written as "native replication
mode".  This is obviously a mistake. Now we use the term "main replica
mode" (slony mode).

5 years agoDoc: fix usable versions of PostgreSQL.
Tatsuo Ishii [Wed, 30 Sep 2020 04:44:20 +0000 (13:44 +0900)]
Doc: fix usable versions of PostgreSQL.

Make usable versions of PostgreSQL to be 7.4 or later.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2020-September/003836.html

5 years agoDoc: more language cleanup.
Tatsuo Ishii [Wed, 30 Sep 2020 01:47:36 +0000 (10:47 +0900)]
Doc: more language cleanup.

Replace "マスター" with "メイン".

5 years agoDoc: more language cleanup.
Tatsuo Ishii [Wed, 30 Sep 2020 01:37:28 +0000 (10:37 +0900)]
Doc: more language cleanup.

Replace "フォローマスター" with "フォロープライマリ".

5 years agoFix some language cleanup mistakes.
Tatsuo Ishii [Wed, 30 Sep 2020 00:45:00 +0000 (09:45 +0900)]
Fix some language cleanup mistakes.

5 years agotest case for dml object level load balance support
Muhammad Usama [Tue, 29 Sep 2020 18:31:54 +0000 (23:31 +0500)]
test case for dml object level load balance support

5 years agoFixing for an issue in dml object level load balance support
Muhammad Usama [Tue, 29 Sep 2020 18:30:10 +0000 (23:30 +0500)]
Fixing for an issue in dml object level load balance support

The comparison of objects should be done case insensitive 

5 years agoLogging sample scripts to pgpool stdout
Bo Peng [Fri, 25 Sep 2020 08:12:35 +0000 (17:12 +0900)]
Logging sample scripts to pgpool stdout

5 years agoMore language cleanup.
Tatsuo Ishii [Wed, 23 Sep 2020 09:33:04 +0000 (18:33 +0900)]
More language cleanup.

Patch contributed by Umar Hayat.

5 years agoDoc: update "Pgpool-II + Watchdog Setup Example".
Bo Peng [Tue, 22 Sep 2020 14:02:37 +0000 (23:02 +0900)]
Doc: update "Pgpool-II + Watchdog Setup Example".

5 years agoDoc: update "Pgpool-II + Watchdog Setup Example" and sample scripts.
Bo Peng [Tue, 22 Sep 2020 13:08:18 +0000 (22:08 +0900)]
Doc: update "Pgpool-II + Watchdog Setup Example" and sample scripts.

5 years agoDoc: update 4.2 release notes.
Tatsuo Ishii [Tue, 22 Sep 2020 02:30:33 +0000 (11:30 +0900)]
Doc: update 4.2 release notes.

Add language cleanup and wd_cli. Also fixes are from 4.1.4, rather
than 4.1.3 because 4.1.4 has been released.

5 years agoFix sample config files error.
Bo Peng [Mon, 21 Sep 2020 09:25:59 +0000 (18:25 +0900)]
Fix sample config files error.

5 years agoApply language cleanup mega patch.
Tatsuo Ishii [Thu, 17 Sep 2020 04:41:44 +0000 (13:41 +0900)]
Apply language cleanup mega patch.

black/white_function_list -> write_function_list, read_only_function_list
black_query_pattern -> primay_routing_query_pattern
black/white_memqcache_table_list -> cache_unsafe/cache_safe_table_list

Watchdog: replace master to 'leader' for 'master' watchdog nodes

ALWAYS_MASTER flag is changed to ALWAYS_PRIMARY.

Replace relcache_query_target option 'master' to 'primary'.

Replace Master Node with Main node ( node id with 0 or youngest live ).

Replace follow_master with follow_primary with parameters.

Replace some remaining occurrences of master with primary/main/leader

Patch contributed by: Umar Hayat
Reviewed by me:

5 years agoAdd wd_cli Japanese doc.
Tatsuo Ishii [Wed, 16 Sep 2020 23:44:06 +0000 (08:44 +0900)]
Add wd_cli Japanese doc.

Also small tweaks to English doc.

5 years agoDocumentation update for wd_cli utility
Muhammad Usama [Wed, 16 Sep 2020 13:41:16 +0000 (18:41 +0500)]
Documentation update for wd_cli utility

Few typo fixes are also part of the commit

5 years agoDoc: add more release note.
Bo Peng [Wed, 16 Sep 2020 08:20:46 +0000 (17:20 +0900)]
Doc: add more release note.

5 years agoDoc: fix the incorrect description regarding the running modes of Pgpoo-II in which...
Bo Peng [Wed, 16 Sep 2020 08:01:33 +0000 (17:01 +0900)]
Doc: fix the incorrect description regarding the running modes of Pgpoo-II in which online recovery is available.

5 years agoRefactor show pool_version and pool_processes.
Tatsuo Ishii [Wed, 16 Sep 2020 06:04:26 +0000 (15:04 +0900)]
Refactor show pool_version and pool_processes.

Refactoring by using send_row_description_and_data_rows().

5 years agoRefactor show pool_heath_check_stats.
Tatsuo Ishii [Wed, 16 Sep 2020 05:28:17 +0000 (14:28 +0900)]
Refactor show pool_heath_check_stats.

Refactoring by using send_row_description_and_data_rows().

5 years agoDoc: Add relesae note 3.5.27 - 4.1.4.
Bo Peng [Wed, 16 Sep 2020 01:46:37 +0000 (10:46 +0900)]
Doc: Add relesae note 3.5.27 - 4.1.4.