Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for include-pk #25

Open
agentultra opened this issue Apr 13, 2022 · 0 comments
Open

Add support for include-pk #25

agentultra opened this issue Apr 13, 2022 · 0 comments

Comments

@agentultra
Copy link
Owner

agentultra commented Apr 13, 2022

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"]                                  +
                         }                                                                                    +
                 }                                                                                            +
         ]                                                                                                    +
 }
@agentultra agentultra changed the title Parse oldkeys in update messages Add support for include-pk Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant