Teleport: Postgres replicator in Go that works without superuser permissions
1–7 of 7 posts
Re: Teleport: Postgres replicator in Go that works without superuser permissions
#2Re: Teleport: Postgres replicator in Go that works without superuser permissions
#3Re: Teleport: Postgres replicator in Go that works without superuser permissions
#4If teleport machine itself dies during replication, you'll have an inconsistent replica, wouldn't you?
Re: Teleport: Postgres replicator in Go that works without superuser permissions
#5If teleport machine itself dies during replication, you'll have an inconsistent replica, wouldn't you?
No, because changes are saved by triggers that run directly on the database. When the teleport instance is back up, those changes will be batched and transmitted.
Re: Teleport: Postgres replicator in Go that works without superuser permissions
#6Earlier quoted context omitted.
No, because changes are saved by triggers that run directly on the database. When the teleport instance is back up, those changes will be batched and transmitted.
I think I get it now. Essentially your replica is always in an inconsistent state, you cannot ever guaranty for anything, that happened on one replica, to be present on another. It's mostly for backups, disaster recovery, when it is ok to lose some data, right?
Re: Teleport: Postgres replicator in Go that works without superuser permissions
#7Earlier quoted context omitted.
I think I get it now. Essentially your replica is always in an inconsistent state, you cannot ever guaranty for anything, that happened on one replica, to be present on another. It's mostly for backups, disaster recovery, when it is ok to lose some data, right?
No. Teleport installs triggers on all tables the first time it starts. After the first start, consistency is guaranteed because triggers will save every data mutation in a separate table (that teleport reads to generate batches for the target instance).
EDIT: Maybe you should rename it to something like "trigger-based asynchronous replication", so people would get the right idea about the guarantees it provides.