On Mon, Jul 11, 2016 at 2:03 PM, Craig Ringer <cr...@2ndquadrant.com> wrote: > On 9 July 2016 at 01:57, Joshua Bay <joshuaba...@gmail.com> wrote: >> and where are this code is in the codebase? > > src/backend/replication/logical/* > src/backend/replication/walsender.c > src/backend/access/transam/xlogreader.c > src/include/access/xlogreader.h > src/include/replication/output_plugin.h > contrib/test_decoding/ > doc/src/sgml/logicaldecoding.sgml
Some other references: https://wiki.postgresql.org/images/7/77/Fosdem-2015-logical-decoding.pdf And some other examples of plugins: https://github.com/leptonix/decoding-json https://github.com/xstevens/decoderbufs https://github.com/confluentinc/bottledwater-pg (for kafka) https://github.com/michaelpq/pg_plugins/tree/master/decoder_raw (wrote this one) -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers