Expand description
Core query, COPY, and error-draining typestates.
Enums§
- Awaiting
Ready - Command results are complete and
ReadyForQueryis required. - Awaiting
Ready Transition - Backend branch available after a result completes.
- Bound
Building - An extended-query pipeline contains a bound, executable portal.
- Building
- An extended-query pipeline is being built but has no bound portal yet.
- Copy
Both - Both peers may stream COPY data.
- Copy
Both Client Done - The client half of a COPY BOTH session is closed.
- Copy
Both Client Done Receive - Backend branch after the client closes its COPY BOTH half.
- Copy
Both Receive - Backend branch while both COPY directions remain open.
- Copy
Both Server Done - The backend half of a COPY BOTH session is closed.
- CopyIn
- The client may stream COPY data to the backend.
- Copy
InTransition - Asynchronous backend branch available while sending COPY IN data.
- CopyOut
- The backend may stream COPY data to the client.
- Copy
OutTransition - Backend branch during COPY OUT.
- Draining
- An errored command is being drained until
ReadyForQuery. - Draining
Transition - Backend branch while discarding messages after an error.
- Function
Call Transition - Backend branch available for the legacy function-call protocol.
- Function
Calling - A legacy function call is awaiting its result.
- Ready
State - Readiness classified by pooling cleanliness evidence.
- Replication
Client Done Receive - Typed walsender branch after the standby closes its sending half.
- Replication
Receive - Typed walsender branch while both replication directions remain open.
- Reset
Complete - Reset command completion was observed and readiness is required.
- Reset
Complete Transition - Backend branch after reset command completion.
- Resetting
- A pool-reset query is executing on a dirty connection.
- Resetting
Transition - Backend branch while a reset command is executing.
- Simple
Query - A simple-query command is awaiting backend results and readiness.
- Simple
Transition - Backend branch available while a simple query is active.
Type Aliases§
- Error
Response - Structured backend error used by session transitions.
- Fallible
- A successful transition or a backend error that enters
Draining. - Replication
Client Done Projection - Replication projection after client half-close, preserving decode failures.
- Replication
Projection - Replication projection preserving the connection when decoding fails.