I'm looking to extract only the rows that have changed in CockroachDB since a given time. We're doing this to be able to maintain a slave-copy of the table in a different DB technology. I've looked into changefeeds, but they seem pretty basic (especially if we decide to go non-enterprise). I've also read about how Cockroach uses MVCC, but I haven't found any information about accessing the timestamps that are associated with rows in the underlying storage technology.
Is there a way to access this timestamp, through SQL or otherwise?
A couple of alternatives I'm considering:
I could use AS OF SYSTEM TIME to run 2 queries at different times, and work out the diff.
I could add a "last updated" and an "is deleted" field to my table, and enforce their use.
If it's not realistic to use the low-level timestamp, do you have any advice related to the above approaches?