Skip to content

Conversation

@rkistner
Copy link
Contributor

Support for parsing custom Postgres types into JSON was added in #339 (1.15.3). However, there was an issue that caused it to only decode the types correctly for streaming replication - initial replication still used the raw (1, 2)-type values.

This did not affect the timestamp format options also added around the same time, only custom types, enums, etc.

This fixes the issue, and adds a test. We use the type info returned with the results of the snapshot query - no need to fetch types from the underlying table.

This also cleans up code to remove a CustomTypeRegistry parameter passed through a couple of layers - it was never used.

@changeset-bot
Copy link

changeset-bot bot commented Nov 17, 2025

🦋 Changeset detected

Latest commit: 1873de1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@powersync/service-module-postgres Patch
@powersync/service-sync-rules Patch
@powersync/service-core Patch
@powersync/service-image Patch
@powersync/service-schema Patch
@powersync/service-jpgwire Patch
@powersync/service-core-tests Patch
@powersync/lib-services-framework Patch
@powersync/service-module-mongodb-storage Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-mysql Patch
@powersync/service-module-postgres-storage Patch
@powersync/service-module-core Patch
test-client Patch
@powersync/lib-service-postgres Patch
@powersync/service-rsocket-router Patch
@powersync/lib-service-mongodb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rkistner rkistner marked this pull request as ready for review November 17, 2025 09:29
Copy link
Collaborator

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

@rkistner rkistner merged commit fff0024 into main Nov 17, 2025
22 checks passed
@rkistner rkistner deleted the fix-custom-types-initial-replication branch November 17, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants