-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a tool to manage all postgres clusters at once. Improve the creat…
…e_cluster.sh tool. This is only the first step that puts the postgres version as parameter and add the missing CREATE EXTENSION btre_gist command in the final psql script.
- Loading branch information
Showing
6 changed files
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# all_cluster.sh | ||
# E-Maj tool, distributed under GPL3 licence | ||
# Perform global operations for all configured clusters | ||
# syntax : all_cluster.sh <start|stop|restart|reload> | ||
|
||
if [ $# -lt 1 ]; then | ||
echo "Usage: $0 <start|stop|restart|reload>" | ||
exit 1 | ||
fi | ||
ACTION=$1 | ||
|
||
#echo "==> Cluster 9.1 :" | ||
#/home/postgres/pg/pg91/bin/pg_ctl -D /home/postgres/db91 $ACTION | ||
echo "==> Cluster 9.2 :" | ||
/home/postgres/pg/pg92/bin/pg_ctl -D /home/postgres/db92 $ACTION | ||
echo "==> Cluster 9.3 :" | ||
/home/postgres/pg/pg93/bin/pg_ctl -D /home/postgres/db93 $ACTION | ||
echo "==> Cluster 9.4 :" | ||
/home/postgres/pg/pg94/bin/pg_ctl -D /home/postgres/db94 $ACTION | ||
echo "==> Cluster 9.5 :" | ||
/home/postgres/pg/pg95/bin/pg_ctl -D /home/postgres/db95 $ACTION | ||
echo "==> Cluster 9.6 :" | ||
/home/postgres/pg/pg96/bin/pg_ctl -D /home/postgres/db96 $ACTION | ||
echo "==> Cluster 10 :" | ||
/home/postgres/pg/pg10/bin/pg_ctl -D /home/postgres/db10 $ACTION | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.