Skip to content

Add support for include-pk #25

@agentultra

Description

@agentultra

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"]                                  +
                         }                                                                                    +
                 }                                                                                            +
         ]                                                                                                    +
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions