<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>pleinsoleil-incのブログ</title>
<link>https://ameblo.jp/pleinsoleil-inc/</link>
<atom:link href="https://rssblog.ameba.jp/pleinsoleil-inc/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>ブログの説明を入力します。</description>
<language>ja</language>
<item>
<title>同期の設定を確認</title>
<description>
<![CDATA[ PostgreSQL9.4の同期設定の確認<br><br><b><span style="font-size: 14px;"><span style="font-size: 16px;">fsync&nbsp;<a href="https://www.postgresql.jp/document/9.4/html/runtime-config-wal.html" target="_blank" title="">第 18章サーバの設定</a><br></span></span></b><span style="color: rgb(74, 74, 74); font-family: 'Helvetica Neue', Helvetica, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, sans-serif; font-size: 16px; line-height: 22.8571434020996px; background-color: rgb(255, 255, 255);"><span style="font-size: 12px;">off とすることでディスクへの書き込みが非同期化でき、高速化できます。</span><br></span><br><b><span style="font-size: 16px;">同期レプリケーション<br></span></b><span style="font-family: verdana, sans-serif; font-size: medium; line-height: 20.7999992370605px; background-color: rgb(255, 255, 255);">・ストリーミングレプリケーション<br></span><pre class="code" data-lang="" data-unlink="" style="overflow-x: auto; overflow-y: hidden; margin-top: 0px; margin-bottom: 0px; padding: 10px; border: 1px solid rgb(204, 204, 204); outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255);"><span style="font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; color: rgb(34, 34, 34);">ストリーミングレプリケーションは、デフォルトで非同期です。同期に設定する方法マスタの設定</span><span style="font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; color: rgb(0, 0, 255);">postgresql.conf</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">wal_level = hot_standby</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">hot_standby = off</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">max_wal_senders = 2</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">synchronous_commit = on</span><span style="font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; color: rgb(34, 34, 34);">synchronous_standby_names = 'slave_hostname'スレーブの設定</span><span style="font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; font-size: 16px; color: rgb(0, 0, 255);">postgresql.conf</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">hot_standby = on</span><span style="font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; color: rgb(0, 0, 255);"><span style="font-size: 16px;">recovery.conf</span></span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">primary_conninfo = 'host=...&nbsp;application_name=slave_hostname</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; line-height: 1.5;">'</span><span style="color: rgb(255, 0, 0); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; line-height: 1.5;">*</span><span style="color: rgb(255, 0, 0); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;">application_nameをマスタの設定と同じにする。</span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif;"></span><span style="color: rgb(34, 34, 34); font-family: Monaco, Consolas, 'Courier New', Courier, monospace, sans-serif; line-height: 1.5;"><br></span></pre><br><b>参考資料</b><br><a></a><a href="http://www.postgresql.jp/document/9.4/html/warm-standby.html#SYNCHRONOUS-REPLICATION" target="_blank" title="">同期レプリケーション</a><br><a></a><a href="https://www.postgresql.jp/document/9.4/html/runtime-config-wal.html" target="_blank" title="">synchronous_commit</a><br><a></a><a href="http://www.postgresql.jp/document/9.4/html/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES" target="_blank" title="">synchronous_standby_names</a><br><br>
]]>
</description>
<link>https://ameblo.jp/pleinsoleil-inc/entry-12029700259.html</link>
<pubDate>Fri, 22 May 2015 16:02:57 +0900</pubDate>
</item>
<item>
<title>PostgreSQL9.4でレプリケーションスロットを試す(CentOS6)</title>
<description>
<![CDATA[ 前回、CentOS6にPostgreSQL9.4を入れたので、<br>レプリケーションスロットを試す。<br>尚、同一マシン上にスレーブを作成する。<br><br>下記に設定手順を記載する。<br><b><span style="font-size: 14px;">1.マスタの設定変更</span></b><br>/var/lib/pgsql/9.4/data/<span style="color: rgb(0, 0, 255);"><b>postgresql.conf</b></span><br>（変更前）<br>#wal_level = minimal<br>#max_wal_senders = 0<br>#max_replication_slots = 0<br>#listen_addresses = 'localhost'<br>#port = 5432<br><br>（変更後）<br>wal_level =&nbsp;hot_standby<br>max_wal_senders = 2<br>max_replication_slots = 1<br>listen_addresses = 'localhost'<br>port = 5432<br><br>/var/lib/pgsql/9.4/data/<b style="color: rgb(0, 0, 255);">pg_hba.conf</b><br>（変更前）<br>#local &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trust<br>#host &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;trust<br><br>（変更後）<br>local &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trust<br>host &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;trust<br><br><b><span style="font-size: 14px;">2.マスタの再起動<br></span></b>pg_ctl restart<br>パスが通ってない場合<br>/usr/pgsql-9.4/bin/pg_ctl&nbsp;restart<br><br><b><span style="font-size: 14px;">3.スレーブの作成<br></span></b>pg_basebackup -D /var/lib/pgsql/9.4/data2 -R -X stream -v<br><br><b><span style="font-size: 14px;">4.スレーブの設定変更<br></span></b>/var/lib/pgsql/9.4/data2/<span style="color: rgb(0, 0, 255);"><b>postgresql.conf</b></span><br>（変更前）<br>port = 5432<br>max_wal_senders = 2<br>max_replication_slots = 1<br>#hot_standby = on<br><br>（変更後）<br>port = 5433　　　　　　　　　　　# 稼働ポートを修正<br>#max_wal_senders = 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# スレーブは設定が不要<br>#max_replication_slots = 1 &nbsp; &nbsp;#&nbsp;スレーブは設定が不要<br>hot_standby = on<br><br>/var/lib/pgsql/9.4/data2/<b style="color: rgb(0, 0, 255);">pg_hba.conf</b><br>（変更前）<br>local &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trust<br>host &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;trust<br><br>（変更後）<br>#local &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trust<br>#host &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;trust<br><br><b><span style="font-size: 14px;">5.レプリケーションスロットの作成<br></span></b>マスタDBに接続 (psql)<br>postgres=# SELECT * FROM pg_create_physical_replication_slot('a_slot');<br><br><b><span style="font-size: 14px;">6.スレーブのrecovery.confに項目を追加<br></span></b>/var/lib/pgsql/9.4/data2/<b><span style="color: rgb(0, 0, 255);">recovery.conf<br></span></b>primary_slot_name = 'a_slot'<br><br><b><span style="font-size: 14px;">7.スレーブの起動<br></span></b>pg_ctl start -D /var/lib/pgsql/9.4/data2 -w<br>パスが通ってない場合<br>/usr/pgsql-9.4/bin/pg_ctl start -D /var/lib/pgsql/9.4/data2 -w<br><br><b>*レプリケーションスロットの確認</b><br>select * from pg_replication_slots;<br><br>
]]>
</description>
<link>https://ameblo.jp/pleinsoleil-inc/entry-12029602747.html</link>
<pubDate>Fri, 22 May 2015 10:23:51 +0900</pubDate>
</item>
<item>
<title>CentoOS6にPostgreSQL9.4をインストール</title>
<description>
<![CDATA[ CentoOS6で、デフォルトで入っているPostgreSQLのバージョンは8系。<br><br>・<a href="http://www.postgresql.org/download/linux/redhat/" target="" title="">公式サイト</a>の手順で実行する。<br><div>権限をrootに変更してから実行。</div><div>yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm</div><div>yum install postgresql94-server postgresql94-contrib</div><div>service postgresql-9.4 initdb<br>chkconfig postgresql-9.4 on<br><br>インストール時にpostgresユーザが追加されるので<br>postgresユーザにパスワードを設定<br>passwd postgres &nbsp;(root権限で実行)<br><br>参考URL<br><a></a><a href="http://www.ideaxidea.com/archives/2013/12/centos6_postgresql_yum.html" target="_blank" title="">PostgreSQL9.3をCentOS6にyumで入れて設定するまでの手順まとめ</a><br><br></div>
]]>
</description>
<link>https://ameblo.jp/pleinsoleil-inc/entry-12028919985.html</link>
<pubDate>Wed, 20 May 2015 16:42:05 +0900</pubDate>
</item>
<item>
<title>VMware PlayerにCentOS6をインストール</title>
<description>
<![CDATA[ VMware PlayerにCentOS6をインストール<br><br>VMware Playerを起動し、新規仮想マシンの作成を選択する。<br><p><a href="http://stat.ameba.jp/user_images/20150520/14/pleinsoleil-inc/5a/a6/j/o0687061913312660949.jpg"><img src="https://stat.ameba.jp/user_images/20150520/14/pleinsoleil-inc/5a/a6/j/t02200198_0687061913312660949.jpg" style="width:220px; height:198px; border:none;" ratio="1.1111111111111112" id="1432101733498"></a><br><br>後で、OSをインストールを選んで「次へ」<br><a href="http://stat.ameba.jp/user_images/20150520/14/pleinsoleil-inc/41/2e/j/o0503042313312660950.jpg" style="line-height: 1.5;"><img src="https://stat.ameba.jp/user_images/20150520/14/pleinsoleil-inc/41/2e/j/t02200185_0503042313312660950.jpg" style="width:220px; height:185px; border:none;" ratio="1.1891891891891893"></a><br>Linuxを選択し、バージョンで「CentOS 64ビット」を選び「次へ」</p><p></p><p></p><p style="text-align: left;"><a href="http://stat.ameba.jp/user_images/20150520/14/pleinsoleil-inc/c8/7c/j/o0503042313312660948.jpg"><img src="https://stat.ameba.jp/user_images/20150520/14/pleinsoleil-inc/c8/7c/j/t02200185_0503042313312660948.jpg" style="width:220px; height:185px; border:none;" ratio="1.1891891891891893" id="1432102513679"></a></p><p></p><p>仮想マシン名、場所を任意で指定します。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/d5/3d/j/o0503042313312671948.jpg" style="line-height: 1.5;"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/d5/3d/j/t02200185_0503042313312671948.jpg" style="width:220px; height:185px; border:none;" ratio="1.1891891891891893" id="1432103441601"></a><br></p><p></p><p></p><p>仮想マシン設定で、CD/DVD項目を選択し、<br>右側の接続項目のISOイメージファイルを使用するを選びます。<br>今回は、予めダウンロードした「<a href="http://ftp.tsukuba.wide.ad.jp/Linux/centos/6.6/isos/x86_64/CentOS-6.6-x86_64-netinstall.iso" style="line-height: normal;"><span style="font-size: 12px; color: rgb(17, 17, 17);">CentOS-6.6-x86_64-netinstall.iso</span></a><span style="line-height: 1.5;">」を選択しました。</span></p><p><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/cf/75/j/o0800065013312671947.jpg"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/cf/75/j/t02200179_0800065013312671947.jpg" style="width:220px; height:179px; border:none;" ratio="1.229050279329609" id="1432103412201"></a><br></p><p></p><p></p><p>VMware PlayerでCentOS 64を起動します。<br>「Install or upgrade an existing system」を選択します。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/a2/37/j/o0656055313312671949.jpg"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/a2/37/j/t02200185_0656055313312671949.jpg" style="width:220px; height:185px; border:none;" ratio="1.1891891891891893" id="1432103613209"></a><br></p><p></p><p></p><p>Disk Found画面では、「Skip」を選択します。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/2a/0f/j/o0736047313312671950.jpg"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/2a/0f/j/t02200141_0736047313312671950.jpg" style="width:220px; height:141px; border:none;" ratio="1.5602836879432624" id="1432102603598"></a><br><br>Choose a Language画面で、「Japanese」を選択<br>Keyboad Type画面で、「jp106」を選択<br><br>Installation Method画面では「URL」を選択します。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/b0/2a/j/o0736053113312676259.jpg" style="line-height: 1.5;"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/b0/2a/j/t02200159_0736053113312676259.jpg" style="width:220px; height:159px; border:none;" ratio="1.3836477987421383" id="1432103866105"></a><br><br>Configure TCP/IP画面では、そのままOKボタンを押下します。<br><br></p><p></p><p></p><p></p><p>URL Setup画面でアドレスを設定します。<br>「http://ftp.riken.jp/Linux/centos/6/os/x86_64」を設定します。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/26/b4/j/o0736053113312676260.jpg"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/26/b4/j/t02200159_0736053113312676260.jpg" style="width:220px; height:159px; border:none;" ratio="1.3836477987421383" id="1432103892913"></a><br></p><p></p><p></p><p>CentoOS6の画面が表示されます。<br>画面に沿って、項目を設定していきます。<br><br>途中でストレージデバイスの警告画面が表示されます。<br>「ｙ」を選択して進みます。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/ba/e9/j/o0800071713312692164.jpg" style="line-height: 1.5;"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/ba/e9/j/t02200197_0800071713312692164.jpg" style="width:220px; height:197px; border:none;" ratio="1.116751269035533"></a><br></p><p></p><p>ホスト名の入力など、画面に沿って入力または、選択します。<br><br>どのタイプのインストールをしますか？の画面で<br>初期に選択されている「既存の Linux システムを入れ替える」を選択し次へ進みます。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/90/e6/j/o0800071713312676261.jpg"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/90/e6/j/t02200197_0800071713312676261.jpg" style="width:220px; height:197px; border:none;" ratio="1.116751269035533" id="1432104052705"></a><br></p><p></p><p></p><p>CentOSのインストール項目を画面に沿って選択します。<br>インストール完了画面が表示されるので、再起動します。<br><br>ライセンス情報等、画面に沿って入力または、選択して進みます。<br><br>初期の設定のままでインストールすると、下図のエラーが発生します。<br>そのままOKを選びます。<br><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/38/1f/j/o0800055513312676262.jpg"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/38/1f/j/t02200153_0800055513312676262.jpg" style="width:220px; height:153px; border:none;" ratio="1.4379084967320261" id="1432104536747"></a><br></p><p></p><p></p><p>設定する箇所が変更不可の為、そのまま終了します。<br></p><div style="text-align: left;"><a href="http://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/df/18/j/o0800055513312679673.jpg" style="line-height: 1.5;"><img src="https://stat.ameba.jp/user_images/20150520/15/pleinsoleil-inc/df/18/j/t02200153_0800055513312679673.jpg" style="width:220px; height:153px; border:none;" ratio="1.4379084967320261" id="1432104916502"></a><br><br>インストールの終了です。<br><br><b>アップデート可能なパッケージをupdateします。</b><br>起動後に、yumでupdateを実行すます。<br>yum check-update<br><span style="line-height: 1.5;">*既存にインストールされているパッケージのバージョンと、サーバ上のパッケージが比較され、アップデート可能なパッケージのみが表示されます。</span><br>yum update<br>*アップデートの実行。<br><br></div><p></p><p></p><p></p><p></p>
]]>
</description>
<link>https://ameblo.jp/pleinsoleil-inc/entry-12028890590.html</link>
<pubDate>Wed, 20 May 2015 15:55:30 +0900</pubDate>
</item>
<item>
<title>PostgreSQL9.4でストリーミングレプリケーションを試す</title>
<description>
<![CDATA[ <span style="font-weight: bold; color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px; background-color: rgb(255, 255, 255);">PostgreSQLのダウンロード<br></span><a></a><a href="http://www.postgresql.org/" target="_blank" title="">http://www.postgresql.org/</a><br><span style="background-color: rgb(255, 255, 255);"><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px;">今回使用したバージョン、Windows版の9.4.1(64bit)</span><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px;">また、同一ネットワークの環境で構築する。</span><br><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px;">マスターの設定</span><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px;">pg_hba.conf<br></span>変更前<br>#host &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;md5<br>変更後<br></span><span style="background-color: rgb(255, 255, 255);">host &nbsp; &nbsp;replication &nbsp; &nbsp; postgres &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;md5<br></span><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);">*環境に応じて、設定を変更する。</span><br><br></span><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px; background-color: rgb(255, 255, 255);">postgresql.conf<br></span><span style="background-color: rgb(255, 255, 255);">変更前</span><br><span style="background-color: rgb(255, 255, 255);">#wal_level = minimal<br>#synchronous_commit = on<br>#max_wal_senders = 0<br>#synchronous_standby_names = ''<br><br>変更後<br></span>wal_level = hot_standby<br><span style="background-color: rgb(255, 255, 255);">synchronous_commit = on<br></span><span style="background-color: rgb(255, 255, 255);">max_wal_senders = 2</span><span style="background-color: rgb(255, 255, 255);"><br></span>synchronous_standby_names = 'slave_hostname'<br><span style="color: rgb(255, 0, 0);">*</span><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);">synchronous_commitは「off, local, remote_write, on」の4種類の設定が出来る。</span></span><br><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px; background-color: rgb(255, 255, 255);">スレーブの設定</span><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px; background-color: rgb(255, 255, 255);">postgresql.conf<br></span><span style="background-color: rgb(255, 255, 255);">変更前</span><br><span style="background-color: rgb(255, 255, 255);">#wal_level = minimal<br>#hot_standby = off<br><br>変更後<br></span>wal_level = hot_standby<br><span style="background-color: rgb(255, 255, 255);">hot_standby = on</span><span style="background-color: rgb(255, 255, 255);"><br></span><br><span style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px; background-color: rgb(255, 255, 255);">recovery.conf</span><br style="color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px;"><div>primary_conninfo = 'host=localhost port=5432 user=postgres password=パスワードapplication_name=slave_hostname'<br><span style="line-height: 1.5;">standby_mode = on</span><br></div><div><span style="color: rgb(255, 0, 0);">*</span><span style="line-height: 1.5; color: rgb(255, 0, 0);">application_nameは、マスタ側に設定した値にする。<br></span><br><span style="line-height: 1.5;">マスタ、スレーブの</span>レプリケーションの確認<br>マスタ側で以下のSQLを実行する。<br><span style="color: rgb(0, 0, 255);">select * from pg_stat_replication</span><br><br></div>
]]>
</description>
<link>https://ameblo.jp/pleinsoleil-inc/entry-12028024398.html</link>
<pubDate>Mon, 18 May 2015 11:11:16 +0900</pubDate>
</item>
</channel>
</rss>
