Skip to content

Parse and store BackendKeyData message#87

Merged
SeanTAllen merged 1 commit intomainfrom
backend-key-data
Feb 11, 2026
Merged

Parse and store BackendKeyData message#87
SeanTAllen merged 1 commit intomainfrom
backend-key-data

Conversation

@SeanTAllen
Copy link
Member

PostgreSQL sends BackendKeyData (K) once during startup, after AuthenticationOk and before ReadyForQuery, containing the backend process ID and secret key. These were previously silently dropped as unsupported messages. Now parsed and stored in _SessionLoggedIn for future use by query cancellation (CancelRequest).

Design: #72

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 11, 2026
PostgreSQL sends BackendKeyData ('K') once during startup, after
AuthenticationOk and before ReadyForQuery, containing the backend
process ID and secret key. These were previously silently dropped
as unsupported messages. Now parsed and stored in _SessionLoggedIn
for future use by query cancellation (CancelRequest).

Design: #72
@SeanTAllen SeanTAllen merged commit be52c51 into main Feb 11, 2026
8 checks passed
@SeanTAllen SeanTAllen deleted the backend-key-data branch February 11, 2026 18:47
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Feb 11, 2026
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.

2 participants