一覧へ戻る
agios/docker-postgres-bdr(新しいタブで開きます)
主要言語: Shell
Docker image for Postgres with BDR support
- star 数
- 26
- watcher 数
- 3
- fork 数
- 21
- issue 数
- 0
- 最終更新
- 2017/08/08
主要言語: Shell
Docker image for Postgres with BDR support
Based on Debian Jessie. Includes a patched postgres with support for BDR
Image heavily borrowed from the official image for postgres. Look there for further usage instructions.
Create a database on each node, eg named bdrdemo. Then, connect to the database on the first node and run:
CREATE EXTENSION IF NOT EXISTS btree_gist; CREATE EXTENSION IF NOT EXISTS bdr; SELECT bdr.bdr_group_create( local_node_name := 'node01', node_external_dsn := 'host=node01.host port=5432 dbname=bdrdemo' );
Then, on all other nodes run:
CREATE EXTENSION IF NOT EXISTS btree_gist; CREATE EXTENSION IF NOT EXISTS bdr; SELECT bdr.bdr_group_join( local_node_name := 'nodeXX', node_external_dsn := 'host=nodeXX.host port=5432 dbname=bdrdemo', join_using_dsn := 'host=node01.host port=5432 dbname=bdrdemo' );
(Make sure to replace node names and hosts with appropriate values)