pg_turso
Postgres output plugin for replicating data to Turso.
pg_turso · Postgres output plugin for replicating data to Turso.
Overview
| Relationships | |
|---|---|
| Requires | pg_cron |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_turso.control)
- Official extension SQL (pg_turso–1.0.sql)
pg_turso — Postgres output plugin for replicating data to Turso. Use it when moving, transforming, or integrating the corresponding data from PostgreSQL. The reviewed upstream material marks this capability deprecated.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
turso_generate_create_table_for_mv(mv_name text)is an extension function and returnstext.turso_generate_create_table_for_table(table_name text)is an extension function and returnstext.turso_migrate_mv_schema(mv_name text)is an extension function and returnstext.turso_migrate_table_schema(table_name text)is an extension function and returnstext.turso_schedule_mv_replication(view_name text, refresh_interval text)is an extension function and returnsinteger.turso_schedule_table_replication(table_name text, refresh_interval text)is an extension function and returnsinteger.turso_send(url text, token text, data text)is an extension function and returnstext.turso_replicate_mvis an extension procedure.turso_replicate_tableis an extension procedure.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - Install the confirmed extension dependencies first:
pg_cron. - The control file marks the extension as relocatable.
- Upstream material contains an explicit deprecation boundary.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.