agentultra / postgresql-replicant

A streaming PostgreSQL logical replication client library for Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for include-pk

agentultra opened this issue · comments

Defaults to false but when enabled in wal2json sends extra pk information:

 {                                                                                                            +
         "change": [                                                                                          +
                 {                                                                                            +
                         "kind": "insert",                                                                    +
                         "schema": "public",                                                                  +
                         "table": "w2j_pk_with_pk",                                                           +
                         "columnnames": ["a", "b", "c", "d", "e"],                                            +
                         "columntypes": ["int4", "timestamp", "text", "bool", "numeric"],                     +
                         "columnvalues": [123, "Sun Apr 26 16:23:59 2020", "Melanosuchus Niger", true, 4.560],+
                         "pk": {                                                                              +
                                 "pknames": ["b", "d", "e"],                                                  +
                                 "pktypes": ["timestamp", "bool", "numeric"]                                  +
                         }                                                                                    +
                 }                                                                                            +
         ]                                                                                                    +
 }