Skip to content

Clean up unused constants and unsupported protocol phases#2

Merged
DHUKK merged 2 commits into
mainfrom
remove-copy_both-from-state-machine
Mar 11, 2026
Merged

Clean up unused constants and unsupported protocol phases#2
DHUKK merged 2 commits into
mainfrom
remove-copy_both-from-state-machine

Conversation

@DHUKK

@DHUKK DHUKK commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Description

  • Remove COPY_BOTH phase and CopyBothResponse message. COPY_BOTH is only used for streaming replication (walsender mode) which this library does not support, and the half-close lifecycle was incompletely modeled.
  • Remove FrontendMessageType and BackendMessageType enums. They were StrEnum (wrong type for a bytes protocol), unused internally, and not worth fixing since the registry and codec already use byte literals directly.

DHUKK added 2 commits March 11, 2026 07:58
COPY_BOTH is only used for streaming replication (walsender mode)
which this library does not support. The half-close lifecycle was
also incompletely modeled. Can be re-added properly if replication
support is needed in the future.
These StrEnum classes were wrong-typed (str instead of bytes) and
unused internally. The message registry and codec use byte literals
directly. Tests that referenced them now use byte literals too.
@DHUKK
DHUKK merged commit f4aea3c into main Mar 11, 2026
17 checks passed
@DHUKK
DHUKK deleted the remove-copy_both-from-state-machine branch March 11, 2026 21:43
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.

1 participant