windows:postgresql

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:postgresql [2019/07/30 08:40] ともやんwindows:postgresql [2019/08/16 14:17] (現在) – [pgBouncer の設定] ともやん
行 17: 行 17:
   - [次へ >] をクリックすると必要なアプリケーションのダウンロードが開始される。{{:windows:postgresql_application_stack_builder_005.png?400|Application Stack Builder 005}}{{:windows:postgresql_application_stack_builder_006.png?400|Application Stack Builder 006}}   - [次へ >] をクリックすると必要なアプリケーションのダウンロードが開始される。{{:windows:postgresql_application_stack_builder_005.png?400|Application Stack Builder 005}}{{:windows:postgresql_application_stack_builder_006.png?400|Application Stack Builder 006}}
   - 全てのダウンロードが完了したら [次へ >] でアプリケーションのインストールを開始する。\\ {{:windows:postgresql_application_stack_builder_007.png?400|Application Stack Builder 007}}   - 全てのダウンロードが完了したら [次へ >] でアプリケーションのインストールを開始する。\\ {{:windows:postgresql_application_stack_builder_007.png?400|Application Stack Builder 007}}
-    - Npgsql インストーラーの [Next >] クリックしてインストールを行う。\\ {{:windows:postgresql_npgsql_installer_001.png?400|Npgsql Installer 001}}{{:windows:postgresql_npgsql_installer_002.png?400|Npgsql Installer 002}}\\ {{:windows:postgresql_npgsql_installer_003.png?400|Npgsql Installer 003}}{{:windows:postgresql_npgsql_installer_004.png?400|Npgsql Installer 004}} +    - Npgsql インストーラーの [Next >] クリックしてインストールを行う。\\ {{:windows:postgresql_npgsql_installer_001.png?400|Npgsql Installer 001}}{{:windows:postgresql_npgsql_installer_002.png?400|Npgsql Installer 002}}\\ {{:windows:postgresql_npgsql_installer_003.png?400|Npgsql Installer 003}}{{:windows:postgresql_npgsql_installer_004.png?400|Npgsql Installer 004}} 
-    - pgBouncer インストーラーの [Next >] クリックしてインストールを行う。\\ {{:windows:postgresql_pgbouncer_installer_001.png?200|pgBouncer Installer 001}}{{:windows:postgresql_pgbouncer_installer_002.png?400|pgBouncer Installer 002}}\\ {{:windows:postgresql_pgbouncer_installer_003.png?400|pgBouncer Installer 003}}{{:windows:postgresql_pgbouncer_installer_004.png?400|pgBouncer Installer 004}}\\ {{:windows:postgresql_pgbouncer_installer_005.png?400|pgBouncer Installer 005}}{{:windows:postgresql_pgbouncer_installer_006.png?400|pgBouncer Installer 006}}\\ {{:windows:postgresql_pgbouncer_installer_007.png?400|pgBouncer Installer 007}} +    - pgBouncer インストーラーの「言語の選択」で **Japanese - 日本語** のまま [OKクリックする。\\ {{:windows:postgresql_pgbouncer_installer_001.png?200|pgBouncer Installer 001}} 
-    - PostGIS インストーラーの [Next >] クリックしてインストールを行う。\\ {{:windows:postgresql_postgis_installer_001.png?400|PostGIS Installer 001}}{{:windows:postgresql_postgis_installer_002.png?400|PostGIS Installer 002}}\\ {{:windows:postgresql_postgis_installer_003.png?400|PostGIS Installer 003}}{{:windows:postgresql_postgis_installer_004.png?400|PostGIS Installer 004}}\\ {{:windows:postgresql_postgis_installer_005.png?400|PostGIS Installer 005}}{{:windows:postgresql_postgis_installer_006.png?400|PostGIS Installer 006}}\\ {{:windows:postgresql_postgis_installer_007.png?400|PostGIS Installer 007}}+    - [次へ >] をクリックしてインストールを進める。\\ {{:windows:postgresql_pgbouncer_installer_002.png?400|pgBouncer Installer 002}}{{:windows:postgresql_pgbouncer_installer_003.png?400|pgBouncer Installer 003}} 
 +    - postgres のパスワードを設定して [次へ >] をクリックしてインストールを進める。\\ {{:windows:postgresql_pgbouncer_installer_004.png?400|pgBouncer Installer 004}} {{:windows:postgresql_pgbouncer_installer_005.png?400|pgBouncer Installer 005}}\\{{:windows:postgresql_pgbouncer_installer_006.png?400|pgBouncer Installer 006}} {{:windows:postgresql_pgbouncer_installer_007.png?400|pgBouncer Installer 007}} 
 +    - PostGIS インストーラーの [Next >] クリックしてインストールを行う。\\ {{:windows:postgresql_postgis_installer_001.png?400|PostGIS Installer 001}}{{:windows:postgresql_postgis_installer_002.png?400|PostGIS Installer 002}}\\ {{:windows:postgresql_postgis_installer_003.png?400|PostGIS Installer 003}} 
 +    - 以下の問い合わせに [はい] で答える。\\ <code> 
 +ラスター変換が機能するために必要な GDAL_DATA 環境変数を登録してもよろしいですか? 
 +既存の設定がある場合、これは上書きされます。</code>{{:windows:postgresql_postgis_installer_004.png?400|PostGIS Installer 004}} 
 +    - 以下の問い合わせに [はい] で答える。\\ <code> 
 +ラスタドライバはデフォルトで無効になっています。 
 +変更するには POSTGIS_GDAL_ENABLED_DRIVERS 環境変数を設定する必要があり、 
 +変更を有効にするには PostgreSQL サービスを再起動する必要があります。 
 +POSTGIS_ENABLED_DRIVERS を共通ドライバ GTiff、PNG、JPEG、XYZ、DTED、USGSDEM、AAIGrid に設定しますか?</code>{{:windows:postgresql_postgis_installer_005.png?400|PostGIS Installer 005}} 
 +    - 以下の問い合わせに [はい] で答える。\\ <code> 
 +dbからのラスタはデフォルトで無効になっています。 
 +POSTGIS_ENABLE_OUTDB_RASTERS 環境変数を 1 に設定する必要があります。 
 +データベースラスタを有効にしますか?</code>{{:windows:postgresql_postgis_installer_006.png?400|PostGIS Installer 006}} 
 +    - [Close] で PostGIS インストーラーを終了する。\\ {{:windows:postgresql_postgis_installer_007.png?400|PostGIS Installer 007}}
   - 全てのインストールが完了したら Application Stack Builder を終了する。\\ {{:windows:postgresql_application_stack_builder_008.png?400|Application Stack Builder 008}}   - 全てのインストールが完了したら Application Stack Builder を終了する。\\ {{:windows:postgresql_application_stack_builder_008.png?400|Application Stack Builder 008}}
-  - 開発用に利用する場合は、[コントロール パネル] - [シテムとセュリティ] - [管理ツル] [サービスより以下のサービスのスタートアップの種類を手動に設定しておく。 +  - 開発用に利用する場合は、クバーの「ここに入力して検索」に services.msc を入力して Enter キーを押す。 
-    * postgresql-x64-x.x+  サービスより以下のサービスのスタートアップの種類を手動に設定しておく。 
 +    * postgresql-x64-x
     * pgbouncer     * pgbouncer
   - pgsql_start.cmd ファイルを作成して手動起動できるようにしておく。<file batch pgsql_start.cmd>   - pgsql_start.cmd ファイルを作成して手動起動できるようにしておく。<file batch pgsql_start.cmd>
-powershell -command start \"net\" -verb runas -argumentlist \"start postgresql-x64-x.x\" +powershell start-process net -argumentlist \"start postgresql-x64-x\" -verb runas 
-powershell -command start \"net\" -verb runas -argumentlist \"start pgbouncer\" +powershell start-process net -argumentlist \"start pgbouncer\" -verb runas 
-</file>+</file>※**x** はインストールバージョンで置き換える。
   - pgsql_stop.cmd ファイルを作成して手動停止できるようにしておく。<file batch pgsql_stop.cmd>   - pgsql_stop.cmd ファイルを作成して手動停止できるようにしておく。<file batch pgsql_stop.cmd>
-powershell -command start \"net\" -verb runas -argumentlist \"stop postgresql-x64-x.x\" +powershell start-process net -argumentlist \"stop postgresql-x64-x\" -verb runas 
-powershell -command start \"net\" -verb runas -argumentlist \"stop pgbouncer\" +powershell start-process net -argumentlist \"stop pgbouncer\" -verb runas 
-</file>+</file>※**x** はインストールバージョンで置き換える。
  
 ==== pgBouncer の設定 ==== ==== pgBouncer の設定 ====
-  - pgbouncer_edit.cmd ファイルを作成して、設定を編集できるようにしておく。<code+  - pgbouncer_edit.cmd ファイルを作成して、設定を編集できるようにしておく。<WRAP prewrap 100%><file batch pgbouncer_edit.cmd
-powershell -command start \"notepad\" -verb runas -argumentlist \"C:\\Program Files (x86)\\PgBouncer\\share\\pgbouncer.ini\" +powershell start-process notepad -argumentlist \"C:\\Program Files (x86)\\PgBouncer\\share\\pgbouncer.ini\" -verb runas 
-</code>+</file></WRAP>
   - pgbouncer.ini の以下の部分を修正する。<code>   - pgbouncer.ini の以下の部分を修正する。<code>
 [databases] [databases]
行 54: 行 70:
 </code> </code>
  
-===== pgAdmin3 のインストール ===== +
-  - [[http://www.pgadmin.org/download/windows.php|pgAdmin: Download - Windows ™]]より最新版をダウンロードしてくる。 +
-  - pgadmin3-x.xx.x.zip を解凍し pgadmin3.msi を実行してインストールする。+
  • windows/postgresql.1564443656.txt.gz
  • 最終更新: 2019/07/30 08:40
  • by ともやん