ReadyForQuery
ReadyForQuery is a backend protocol message. Identifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle.
Reading PG 18·Select a recorded version
- Direction
- Backend → frontend
- First wire field
- Byte1('Z')
- Field entries
- 3
- Documented flow contexts
- Start-up; Simple Query; Extended Query; Pipelining; Function Call; COPY Operations; Asynchronous Operations
- direction
- B
- manual path
- /docs/18/protocol-message-formats.html
- signature
- ReadyForQuery (B)
Definition PG 18
-
- Byte1('Z')
-
Identifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle.
- Int32(5)
-
Length of message contents in bytes, including self.
- Byte1
-
Current backend transaction status indicator. Possible values are '
I' if idle (not in a transaction block); 'T' if in a transaction block; or 'E' if in a failed transaction block (queries will be rejected until block is ended).
Wire fields in documented order
| Position | Format | Meaning |
|---|---|---|
| 1 | Byte1('Z') | Identifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle. |
| 2 | Int32(5) | Length of message contents in bytes, including self. |
| 3 | Byte1 | Current backend transaction status indicator. Possible values are ' I ' if idle (not in a transaction block); ' T ' if in a transaction block; or ' E ' if in a failed transaction block (queries will be rejected until block is ended). |
Compare versions
Complete source facts
fields
map[description:Identifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle. format:Byte1('Z')], map[description:Length of message contents in bytes, including self. format:Int32(5)], map[description:Current backend transaction status indicator. Possible values are ' I ' if idle (not in a transaction block); ' T ' if in a transaction block; or ' E ' if in a failed transaction block (queries will be rejected until block is ended). format:Byte1]Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f