tursodatabase / pg_turso

Postgres output plugin for replicating data to Turso.
MIT License
72 stars 4 forks source link

Background replication #1

Closed penberg closed 1 year ago

penberg commented 1 year ago

You currently need to execute the pg_logical_slot_get_changes() function to replicate:

SELECT * FROM pg_logical_slot_get_changes('pgturso_slot', NULL, NULL, 'url', 'http://127.0.0.1:8080/', 'auth', 's3cr3t');

Let's look into ways to make the replication happen automatically in the background.

penberg commented 1 year ago

This is implemented now with SQL extension functions.