5.3 Partitioning Support:
Slony-I does not directly provide support for the PostgreSQL methodology of partitioning via inheritance, but it does not, by the same token, prevent the Gentle User from using that sort of replication scheme, and then replicating the underlying tables.
那如何完成slony的自動化Table Partition就是本文的課題啦~
1. 環境準備
a). 準備兩個Linux VM(這裡用CentOS),ip各為192.168.38.25~26。
b). 先利用這章建立slony的環境,確保slony有正常運作。
c). 安裝PLSH extension (不知怎裝看這邊喔!!)。
2. 步驟
a). Create Database 在slony的兩個節點。
SQL> CREATE DATABASE demo WITH ENCODING='UTF8' OWNER=slony;
b). 建立所需Function