How to decode the output from pgoutput

Поиск
Список
Период
Сортировка
От Ami Ganguli
Тема How to decode the output from pgoutput
Дата
Msg-id CALfOZk+TNTUoVzF33BgkWDRpzNB4o=WY=qTyNQu_06dpcax4bw@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

I'm writing a tool to process a logical replication stream.  The intent is to use publications and subscriptions as an initial filter, and then use the replication stream to trigger external events.  So my tool should connect to the master in the same manner as a replication slave, but it does different things with the data.

So far I've used pg_recvlogical.c as a guide and I'm successfully connecting to the master, creating a replication slot, and subscribing to a couple of publications. 

But now I'm stuck at further interpreting the data.  Can anybody point me to further documentation or the right code to look at to figure out the format of the WAL data stream?

Cheers,
Ami.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Making WAL receiver startup rely on GUC context forprimary_conninfo and primary_slot_name
Следующее
От: Andrew Gierth
Дата:
Сообщение: declaration-after-statement (was Re: Ryu floating point output patch)