PostgreSQL 10 Logical Replication
發佈端 Publisher login as: root root@192.168.235.10's password: Last login: Mon Jun 11 10:14:09 2018 from 192.168.235.1 [root@vsource ~]# su - postgres Last login: Mon Jun 11 11:14:06 CST 2018 on pts/1 -bash-4.2$ psql psql (10.4) Type "help" for help. postgres=# ALTER SYSTEM SET listen_addresses to '*'; ALTER SYSTEM postgres=# ALTER SYSTEM SET wal_level = 'logical'; ALTER SYSTEM postgres=# SHOW max_wal_senders; max_wal_senders ----------------- 10 (1 row) postgres=# SHOW max_replication_slots; max_replication_slots ----------------------- 10 (1 row) postgres-# \q -bash-4.2$ /usr/pgsql-10/bin/pg_ctl -D $PGDATA restart waiting for server to shut down.... done server stopped waiting for server to start....2018-06-11 15:04:57.851 CST [3618] LOG: listening on IPv4 address "0.0.0.0", port 5432 2018-06-11 15:04:57.851 CST [3618] LOG: listening on IPv6 address "::", port...