From 8f5875b7b204f9148befdfb822b7fc400dcd69fd Mon Sep 17 00:00:00 2001 From: Kris Wehner Date: Thu, 5 Jan 2017 09:49:27 -0800 Subject: [PATCH] Try to fix travis --- .travis.yml | 6 ++++++ README.md | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index b120b33a..9f58e426 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,11 @@ before_install: - echo "host all pgx_md5 127.0.0.1/32 md5" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf - echo "host all pgx_pw 127.0.0.1/32 password" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf - echo "hostssl all pgx_ssl 127.0.0.1/32 md5" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf + - echo "host replication pgx_ssl 127.0.0.1/32 md5" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf + - sudo chmod 777 /etc/postgresql/$PGVERSION/main/postgresql.conf + - echo "wal_level='logical'" >> /etc/postgresql/$PGVERSION/main/postgresql.conf + - echo "max_wal_senders=5" >> /etc/postgresql/$PGVERSION/main/postgresql.conf + - echo "max_replication_slots=5" >> /etc/postgresql/$PGVERSION/main/postgresql.conf - sudo /etc/init.d/postgresql restart env: @@ -38,6 +43,7 @@ before_script: - psql -U postgres -c "create user pgx_ssl SUPERUSER PASSWORD 'secret'" - psql -U postgres -c "create user pgx_md5 SUPERUSER PASSWORD 'secret'" - psql -U postgres -c "create user pgx_pw SUPERUSER PASSWORD 'secret'" + - psql -U postgres -c "create user pgx_replication with replication password 'secret'" - psql -U postgres -c "create user \" tricky, ' } \"\" \\ test user \" superuser password 'secret'" install: diff --git a/README.md b/README.md index 51a01339..6f8b5015 100644 --- a/README.md +++ b/README.md @@ -95,12 +95,14 @@ If you are developing on Unix with domain socket connections: local pgx_test pgx_none trust local pgx_test pgx_pw password local pgx_test pgx_md5 md5 + local replication pgx_replication 127.0.0.1/32 md5 If you are developing on Windows with TCP connections: host pgx_test pgx_none 127.0.0.1/32 trust host pgx_test pgx_pw 127.0.0.1/32 password host pgx_test pgx_md5 127.0.0.1/32 md5 + host replication pgx_replication 127.0.0.1/32 md5 For replication testing, add the following to your postgresql.conf: