STREAM STOP message without STREAM START

SQLSTATE 08P01 condition protocol_violation class 08 — Connection Exception severity ERROR
Reproduced & verified on PostgreSQL 14.23, 15.18, 16.14, 17.10 and 18.4 — identical message on every version.
Last reviewed 8 Jun 2026 · Reproduced live with the SQL on this page.

Symptoms

A statement failed with SQLSTATE 08P01 (protocol_violation), reported at severity ERROR. This is a Connection Exception condition: PostgreSQL emits the message STREAM STOP message without STREAM START.

What the server log shows

ERROR:  STREAM STOP message without STREAM START

Why PostgreSQL raises this

Class 08 (Connection Exception) covers failures establishing or maintaining the client/server or replication connection. PostgreSQL raises it when the transport, handshake, or authentication channel breaks before or during a session.

As described in PostgreSQL’s Section 34.1 Database Connection Control Functions and Appendix A (PostgreSQL Error Codes), SQLSTATE 08P01 carries the condition name protocol_violation in class Connection Exception. (Paraphrased — see the linked reference for the exact wording.)

Common causes

How to fix it

  1. Confirm the server is up and accepting connections (pg_isready).
  2. Verify host, port, and listen_addresses reachability.
  3. Check firewalls, security groups, and any connection pooler in the path.
  4. Inspect the server log around the disconnect for the underlying cause.

Version applicability

This message is present in PostgreSQL 15, 16, 17, 18 and 19.

Related & next steps

Reference: PostgreSQL Section 34.1 Database Connection Control Functions.