Fly Postgres
Instructions for configuring PowerSync on a Fly Postgres instance. Fly Postgres is a Fly app with flyctl sugar on top to help you bootstrap and manage a database cluster for your apps.
Enable Logical Replication
Once you've deployed your Fly Postgres cluster, it's time to enable logical replication.
This is performed by running the below command:
Create a PowerSync Database User
Create a PowerSync user on Postgres:
For read-only access, only the SELECT
privilege is required — INSERT
, UPDATE
and DELETE
can be removed.
To restrict read access to specific tables, explicitly list allowed tables for both the SELECT
privilege, and for the publication (as well as for any other publications that may exist).
Create "powersync" Publication
Connect PowerSync to Fly Postgres
Complete the instructions documented here to connect the PowerSync Service to your Fly Postgres cluster:
Last updated