PostgreSQL 10 Beta3もリリースされ、正式リリースも近づいてきたのでPostgreSQL 10の目玉機能の一つであるLogical Replicationを使ってみます。 ソースはここから取得できます。 特徴 Logical Replicationとは何か理解するときに以下の2つの特徴を知っておくと便利です。 Logical Decoding Publication/Subscription Logical Decoding Logical DecodingはPostgreSQL 9.3から導入された機能で、「WAL(トランザクションログ)をデコードする」機能です。これを使うことで、PostgreSQLが出力WALを任意の形式にデコードすることができます。また、デコード部分はプラグイン形式になっているので色々なプラグインが存在します。(最近Amazon PostgreSQL