Skip to main content

Module postgres

Module postgres 

Source
Expand description

PostgreSQL wire protocol parser (v3)

Message format: [type:1][length:4 (includes self)][payload…] Startup message has no type byte: [length:4][protocol_version:4][params…]

Functions§

extract_postgres_full_command
Extract full SQL from request (no truncation)
format_postgres_response_detail
Format response detail for the detail panel
parse_postgres_request
Parse a client→server message, return human-readable summary
parse_postgres_response
Parse a server→client message, return short summary Scans for the most important message in a multi-message buffer.
postgres_response_complete
Check if a PostgreSQL response is complete (ends with ReadyForQuery ‘Z’)