Postgres module

Pipeline

structsince 0.27.0Source

The pipeline of a connection (pipeline_enter). While it is active, the connection answers no other request.

Fields

connection: *Connection
active: bool
aborted: bool
A statement failed and its batch has not reached its sync point yet: the rest of the batch is skipped.
steps: [..] Pipeline_Step
queued, whose results are not all read; from head on
head: s64
unsynced: s64
statements queued since the last sync point
chunk_rows: s64
the statement being read delivers this many rows per result (0: all at once)
tag_ready: bool
the statement's last rows were delivered, and its command tag is in current
current: Pipeline_Result
the result being assembled: a deadline in the middle loses nothing
queued: s64
statements queued since pipeline_enter, sync points not counted
read: s64
of those, how many have their result read
early: [..] Early_Result
read on the way to a later typed result (take), not taken yet

See also