Unverified Commit a870eacf authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Transform wal2json JSON messages into SQL queries. (#48)

* WIP: infrastructure to parse a JSON message in our internal structs.

An internal representation for the JSON message then allows to be smart
about multi-values INSERT statements or switching to COPY, and issuing a
single DELETE statement for many values too, etc.

At the moment only the infrastructure to support that is coded, we always
fill-in single tuple per statement.

* Actually use the "include-timestamp" wal2json option.

* First pass at producing the SQL queries from the JSON messages.

* Add some testing coverage.

* Fix an error spotted in the gcc output on debian.

* Implement UPDATE and DELETE output in SQL.

* Review an Assert() and make it a first-class error reporting.

* Update docs.
parent f4697c18
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment