I've polished & pushed the first part adding sequence decoding
infrastructure etc. Attached are the two remaining parts.
I plan to wait a day or two and then push the test_decoding part. The
last part (for built-in replication) will need more work and maybe
rethinking the grammar etc.
regards
--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company