summaryrefslogtreecommitdiff
path: root/databases/pgpool-II-23/files/pgpool_switch_xlog
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2010-03-11 09:42:07 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2010-03-11 09:42:07 +0000
commit08acf5c407242344b0047b8040900f52df620dde (patch)
tree49936ec28d8b2a4256959f13245d757df97e04bd /databases/pgpool-II-23/files/pgpool_switch_xlog
parentUpgrade to version 2.4.0. (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_3_0'.release/7.3.0
Diffstat (limited to 'databases/pgpool-II-23/files/pgpool_switch_xlog')
-rw-r--r--databases/pgpool-II-23/files/pgpool_switch_xlog20
1 files changed, 0 insertions, 20 deletions
diff --git a/databases/pgpool-II-23/files/pgpool_switch_xlog b/databases/pgpool-II-23/files/pgpool_switch_xlog
deleted file mode 100644
index 8ce8b8603a46..000000000000
--- a/databases/pgpool-II-23/files/pgpool_switch_xlog
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-logger="logger -t pgpool -p local0.info"
-psql=/usr/local/bin/psql
-
-/bin/sh <<EOF | ${logger} 2>&1
-
-$psql -t -c 'SELECT datname FROM pg_database WHERE NOT datistemplate AND datallowconn' template1 |
-while read i
-do
- if [ "$i" != "" ];then
- $psql -c "SELECT setval(oid, nextval(oid)) FROM pg_class WHERE relkind = 'S'" $i
- fi
-done
-
-$psql -c 'select pg_switch_xlog()' template1
-
-EOF