# PostgreSQL Wire Protocol

**Canonical:** https://apis.io/apis/postgresql/wire-protocol/  
**Provider:** PostgreSQL — https://apis.io/providers/postgresql/  
**Base URL:** postgresql://hostname:5432  
**Documentation:** https://www.postgresql.org/docs/current/protocol.html

PostgreSQL Wire Protocol is one of 5 APIs that [PostgreSQL](https://apis.io/providers/postgresql/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Database, Wire Protocol, SQL, and Connection Protocol. The published artifact set on APIs.io includes API documentation.

The PostgreSQL frontend/backend protocol is the low-level message-based protocol used by all client drivers (libpq, JDBC, ODBC, psycopg, pgx, node-postgres, etc.) to communicate with the PostgreSQL server over TCP/IP or Unix sockets. Authentication supports password, SCRAM-SHA-256, MD5, GSSAPI, SSPI, certificate, LDAP, and other pluggable methods.

## Machine-readable artifacts (3)

- **Documentation** — https://www.postgresql.org/docs/current/protocol.html
- **Specification** — https://www.postgresql.org/docs/current/protocol-message-formats.html
- **GraphQL** — https://raw.githubusercontent.com/api-evangelist/postgresql/refs/heads/main/graphql/postgres-graphql.md

## Other PostgreSQL APIs (4)

- [PostgreSQL](https://apis.io/apis/postgresql/postgresql/)
- [libpq C Client Library](https://apis.io/apis/postgresql/libpq/)
- [PostgreSQL JDBC Driver](https://apis.io/apis/postgresql/jdbc/)
- [PostgreSQL ODBC Driver (psqlODBC)](https://apis.io/apis/postgresql/odbc/)

## Tags

Database, Wire Protocol, SQL, Connection Protocol

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/postgresql/wire-protocol/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/postgresql/.
