Skip to content

Add ParameterStatus tracking#120

Merged
SeanTAllen merged 1 commit intomainfrom
parameter-status-tracking
Feb 14, 2026
Merged

Add ParameterStatus tracking#120
SeanTAllen merged 1 commit intomainfrom
parameter-status-tracking

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

PostgreSQL sends ParameterStatus messages during connection startup to report runtime parameter values (server_version, client_encoding, standard_conforming_strings, etc.) and again whenever a SET command changes a reporting parameter. Previously, the driver parsed these but silently discarded them as _SkippedMessage.

Now they are fully parsed and delivered to users via a new pg_parameter_status callback on SessionStatusNotify with a ParameterStatus value carrying name and value fields. The callback has a default no-op implementation, so existing code is unaffected. _SkippedMessage is removed entirely since ParameterStatus was its only producer.

PostgreSQL sends ParameterStatus messages during startup (server_version,
client_encoding, etc.) and after SET commands. Previously these were parsed
but silently discarded as _SkippedMessage. Now they are fully parsed into
_ParameterStatusMessage and delivered to users via a new pg_parameter_status
callback on SessionStatusNotify.

This removes _SkippedMessage entirely since ParameterStatus was its only
producer. The new callback has a default no-op implementation, so existing
code is unaffected.
@SeanTAllen SeanTAllen added the changelog - added Automatically add "Added" CHANGELOG entry on merge label Feb 14, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 14, 2026
@SeanTAllen SeanTAllen merged commit e667cf1 into main Feb 14, 2026
11 checks passed
@SeanTAllen SeanTAllen deleted the parameter-status-tracking branch February 14, 2026 13:22
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Feb 14, 2026
github-actions bot pushed a commit that referenced this pull request Feb 14, 2026
github-actions bot pushed a commit that referenced this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - added Automatically add "Added" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants