Open deathemperor opened 10 months ago
Hi @deathemperor,
Can you clarify what you're looking for here? Do you want DoltgreSQL to consume replication events from a Postgres server, or something else?
@zachmu if I understand correctly, the replication feature running on MySQL in Dolt right now enables Dolt to capture changes while the main database instance functions as is. Which is the use cases of already-production businesses. Please correct me if I'm wrong.
I want DoltgreSQL to act the same, a replication instance to capture changes. I'm not sure I understand what replication events means to be honest.
Let's try explaining it using my example:
Sorry for the late reply here.
We're planning on building the ability for doltgres to act as a replica of a postgres database, but the doltgres replica won't be accessible from the postgres primary. So:
I join tables from 2 databases to build a related data that can be queried: with each employee, what changes were made to first and last name in the last 6 months.
I don't think this will work -- the postgres instance won't be able to see the replica to query it and do the join. But you'll be able to do the historical query on the doltgres replica itself, without involving the postgres primary.
I don't think this will work -- the postgres instance won't be able to see the replica to query it and do the join. But you'll be able to do the historical query on the doltgres replica itself, without involving the postgres primary.
That's totally understandable. I tried to explain it in the basic terms possible (RDBMS) in my example. However, our real use case involve Hasura and GraphQL which enables data relation between any data sources so in this case I'm 99% sure it will work as Doltgres is Postgres compatible. Sure there may be this and that issue but I believe the basics are already awesome.
@zachmu @fulghum any chance I can get an update on this?
Hi @deathemperor,
Sorry for the lack of progress on this, that's my fault. We've been heads down making bug fixes and enhancements to the core doltgres server experience and haven't been paying much attention to the replication feature.
I'm going to get you an updated release with additional logging today so we can try to figure out where the error you're seeing is coming from. I'll update this thread when it's out.
Please try again with the latest release:
https://github.com/dolthub/doltgresql/releases/tag/v0.12.0
It has more lenient error handling for sending replication standby messages (the error you were seeing in the other bug), as well as a lot of other bug fixes for the server in general.
Let me know how it works.
Copied from original request:
I really want to share our intended use case with doltgres just so you know how interested I am in this project: we do claim management and processing for insurers and data changes are part of our core data structures. At any given time we need to allow claim handlers to view those data to make decisions as well as others to view audit logs. Such use case may not be so unique, except we're using GraphQL with Hasura (been using it in our org for 3 years now) which enables instant GraphQL from postgres. With the combination of those, we'll build something like this:
Graphql-join this data with the employees table, I'll get this Graph: