This repository was archived by the owner on Aug 7, 2026. It is now read-only.
Repository navigation
fix: omit null table from postgres_changes join payload - #77
Merged
Merged
Conversation
A schema-wide listener has no table, so Table is null — but it serialized as "table": null in the join config.postgres_changes payload, whereas the server expects the key to be absent. Add NullValueHandling.Ignore so a null table is dropped, matching realtime-js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A schema-wide
postgres_changeslistener has no table, soTableisnull.That was serialized into the join
config.postgres_changespayload as"table": null, whereas the server expects the key to be absent. AddingNullValueHandling.Ignoredrops the key whenTableis null.Why
Sending "table": null is not the shape the realtime server expects for a
schema-wide subscription; omitting the key matches the reference realtime-js
config object, where an absent table means "every table in the schema."
Wire-shape change
This changes the serialized join payload for schema-wide listeners only
("table": null → key omitted). Listeners that specify a table are unaffected.
Called out here for reviewers; the package has no payload snapshot suite, so
there is nothing to re-approve.
Relationship to #54
Third of three focused PRs carved out of the stale draft #54, rebased onto
current master and brought to standard. #54 bundled this attribute change
with an unrelated [Obsolete] on PostgresChangesOptions.Parameters; that
deprecation is intentionally left out of this PR and deferred to the follow-up
that retires the two-step postgres_changes API.
Testing
when null, and serialized when provided. Verified the null case catches the
regression — pre-fix it fails with the table key present.