Skip to content

Commit 7348ea0

Browse files
authored
[Postgres] Fix replication slot name (#226)
* Use slot_name from replication connection. * Add changeset.
1 parent 7d1cd98 commit 7348ea0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/cyan-otters-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/service-core': patch
3+
---
4+
5+
Use slot_name_prefix from the replication connection again.

packages/service-core/src/util/config/compound-config-collector.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ export class CompoundConfigCollector {
170170
baseConfig.api?.parameters?.max_data_fetch_concurrency ?? DEFAULT_MAX_DATA_FETCH_CONCURRENCY
171171
},
172172
// TODO maybe move this out of the connection or something
173-
// slot_name_prefix: connections[0]?.slot_name_prefix ?? 'powersync_'
174-
slot_name_prefix: 'powersync_',
173+
slot_name_prefix: baseConfig.replication?.connections?.[0]?.slot_name_prefix ?? 'powersync_',
175174
parameters: baseConfig.parameters ?? {}
176175
};
177176

0 commit comments

Comments
 (0)