Fork me on GitHub
#xtdb
<
2023-09-11
>
Martynas Maciulevičius07:09:25

Is there a way to migrate between tx-log storages? For instance I have a local tx log and then want to put it into Postgres. Is there a guide for this? Or should I do open-tx-history and do it myself somehow? I asked this question in this comment but it was too distant and technical to be understood as a proper question: https://clojurians.slack.com/archives/CG3AM2F7V/p1694322504742289

Martynas Maciulevičius07:09:11

I think open-tx-log is the way. And then during migration I should have two databases at the same time:

(open-tx-log ^java.io.Closeable [this after-tx-id with-ops?]
    "Reads the transaction log. Optionally includes
  operations, which allow the contents under the ::tx-ops
  key to be piped into (submit-tx tx-ops) of another
  XTDB instance.