Skip to content

postgres protocol

ghdrako edited this page Oct 11, 2025 · 1 revision

PostgreSQL’s messaging protocol say how long the data is in the data itself.

Each response can be made up of multiple message types, for example the result of a SELECT statement will be a RowDescription message which returns the field name and type of each column, then a DataRow message for each row in the result, followed by a CommandComplete message. Having a message for each row makes it easier for the client to start parsing and processing large results while they are still being received

Test

Clone this wiki locally