<!--
Specifies the running mode. <replaceable>mode</replaceable>
can be <literal>r</literal> (native replication mode), <literal>s</literal> (streaming replication mode),
- <literal>n</literal> (raw mode) or <literal>l</literal>
- (logical replication mode). If this is
+ <literal>n</literal> (raw mode), <literal>l</literal>
+ (logical replication mode) or <literal>y</literal> (slony mode). If this is
omitted, <literal>s</literal> is assumed.
-->
動作モードを指定します。<replaceable>mode</replaceable>は
- <literal>r</literal> (ネイティブレプリケーションモード), <literal>s</literal> (ストリーミングレプリケーションモード)、<literal>n</literal> (raw モード)、または<literal>l</literal> (ロジカルレプリケーションモード)を指定できます。
+ <literal>r</literal> (ネイティブレプリケーションモード), <literal>s</literal> (ストリーミングレプリケーションモード)、<literal>n</literal> (raw モード)、<literal>l</literal> (ロジカルレプリケーションモード)または<literal>l</literal>(slonyモード)を指定できます。
指定しない場合は、<literal>s</literal> (ストリーミングレプリケーションモード) を指定した見なされます。
</para>
</listitem>
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
+am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
-am__v_at_1 =
+am__v_at_1 =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
<para>
Specifies the running mode. <replaceable>mode</replaceable>
can be <literal>r</literal> (native replication mode), <literal>s</literal> (streaming replication mode),
- <literal>n</literal> (raw mode) or <literal>l</literal>
- (logical replication mode). If this is
+ <literal>n</literal> (raw mode), <literal>l</literal>
+ (logical replication mode) or <literal>y</literal> (slony mode). If this is
omitted, <literal>s</literal> is assumed.
</para>
</listitem>
# -m r: create an installation as native replication mode.
# -m n: create an installation as raw mode.
# -m l: create an installation as logical replication mode.
+# -m y: create an installation as slony mode.
# -n num_clusters: create num_clusters PostgreSQL database cluster nodes
# -p base_port: specify base port. pgpool port is base_port.
# pcp port is base_port + 1. The first PostgreSQL node's port is
echo "max_wal_senders = $NUMCLUSTERS" >> $PGCONF
echo "archive_mode = on" >> $PGCONF
echo "archive_command = 'cp %p $BASEDIR/archivedir/%f </dev/null'" >> $PGCONF
- elif [ $MODE = 'r' -o $MODE = 'l' ];then
+ elif [ $MODE = 'r' -o $MODE = 'l' -o $MODE = 'y' ];then
echo "wal_level = archive" >> $PGCONF
echo "archive_mode = on" >> $PGCONF
echo "archive_command = 'cp %p $BASEDIR/archivedir/%f </dev/null'" >> $PGCONF
################################################################################
function usage()
{
- echo "usage: $0 [-m r|s|n|l] [-n num_clusters] [-p base_port] [-pg pg_base_port][--no-stop] [-d]";exit 1
+ echo "usage: $0 [-m r|s|n|l|y] [-n num_clusters] [-p base_port] [-pg pg_base_port][--no-stop] [-d]";exit 1
}
#-------------------------------------------
s ) MODE="s";;
n ) MODE="n";;
l ) MODE="l";;
+ y ) MODE="y";;
* ) usage;;
esac
elif [ $1 = "-n" ];then
l ) MODENAME="logical replication mode"
SAMPLE_CONF=$PGPOOLDIR/pgpool.conf.sample-logical
;;
+ y ) MODENAME="slony mode"
+ SAMPLE_CONF=$PGPOOLDIR/pgpool.conf.sample-master-slave
+ ;;
esac
#-------------------------------------------
while [ $n -lt $NUMCLUSTERS ]
do
- if [ $MODE = 'l' ]
+ if [ $MODE = 'l' -o $MODE = 'y' ]
then
# temporarily start data$n cluster to create extensions
echo "temporarily start data${n} cluster to create extensions"