@powersync/service-module-postgres-storage 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +7 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/storage/PostgresBucketStorageFactory.d.ts +1 -0
- package/dist/@types/storage/batch/PostgresBucketBatch.d.ts +1 -1
- package/dist/storage/PostgresBucketStorageFactory.js +7 -0
- package/dist/storage/PostgresBucketStorageFactory.js.map +1 -1
- package/dist/storage/batch/PostgresBucketBatch.js +26 -17
- package/dist/storage/batch/PostgresBucketBatch.js.map +1 -1
- package/dist/storage/batch/PostgresPersistedBatch.js +39 -81
- package/dist/storage/batch/PostgresPersistedBatch.js.map +1 -1
- package/package.json +6 -6
- package/src/storage/PostgresBucketStorageFactory.ts +11 -0
- package/src/storage/batch/PostgresBucketBatch.ts +30 -17
- package/src/storage/batch/PostgresPersistedBatch.ts +39 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @powersync/service-module-postgres-storage
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [223f701]
|
|
8
|
+
- @powersync/lib-service-postgres@0.3.0
|
|
9
|
+
|
|
10
|
+
## 0.2.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 23fb49f: Allowed using the same Postgres server for the replication source and sync bucket storage. This is only supported on Postgres versions newer than 14.0.
|
|
15
|
+
- 23fb49f: Added the ability to skip creating empty sync checkpoints if no changes were present in a batch.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 23fb49f: Fix bug where listening to active checkpoint notifications on an ended connection could cause a crash.
|
|
20
|
+
- Updated dependencies [23fb49f]
|
|
21
|
+
- @powersync/service-core@0.17.0
|
|
22
|
+
- @powersync/service-core-tests@0.3.3
|
|
23
|
+
|
|
3
24
|
## 0.1.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -31,7 +31,13 @@ storage:
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
**IMPORTANT**:
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
Separate Postgres servers are required for replication connections **if using PostgreSQL versions below 14**.
|
|
36
|
+
|
|
37
|
+
| PostgreSQL Version | Server configuration |
|
|
38
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
39
|
+
| Below 14 | Separate servers are required for the source and sync bucket storage. Replication will be blocked if the same server is detected. |
|
|
40
|
+
| 14 and above | The source database and sync bucket storage database can be on the same server. Using the same database (with separate schemas) is supported but may lead to higher CPU usage. Using separate servers remains an option. |
|
|
35
41
|
|
|
36
42
|
### Connection credentials
|
|
37
43
|
|