64. DBコンテナの構成
# "local" is for Unix domain socket connections only
local all postgres trust
local replication postgres peer ← 追記
#local all postgres peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host all postgres 0.0.0.0/0 reject
• レプリケーションアクセス設定(pg_hba.confを編集)
65. DBコンテナの構成
# ls -l /mnt/pgsql/archive/
total 32768
-rw-------. 1 postgres postgres 16777216 Feb 17 06:47 000000010000000000000004
-rw-------. 1 postgres postgres 16777216 Feb 17 13:51 000000010000000000000005
• PITR(Point In Time Recovery)設定
– マウントしたストレージ に WALアーカイブが保存されます