Skip to main content
For partitioned tables in Postgres, each individual partition is replicated and processed using Sync Streams. To use the same queries and same output table name for each partition, use % for wildcard suffix matching of the table name:
The wildcard character can only be used as the last character in the table name. To match tables across multiple schemas instead, see Wildcard Schemas. When using wildcard table names, you can filter on the original table suffix with the table_suffix() function, prefixed with the table name or alias from the FROM clause. This requires PowerSync Service v1.24.0 or later:
When no table alias is provided, the original table name is preserved. publish_via_partition_root on the publication is not supported — the individual partitions must be published.