Skip to content

Guide

Signatures and defaults live in the API reference.

Guide Topic
Connections Configuration precedence, TLS, multi-host routing, authentication, and session defaults.
Queries and transactions Fetching rows, binding parameters, prepared statements, transactions, and retries.
SQL composition Dynamic statements from Query, Identifier, optional predicates, and Literal.
Errors and retries Exception hierarchy, server and local diagnostics, and retry safety.
Types and adapters Python and Arrow type mappings, exact representations, adapters, and schema refreshes.
Pools and PgBouncer Session pooling, sizing, monitoring, and transaction-pooling proxies.
Streaming, Arrow and COPY Incremental row streams, Arrow record batches, and binary COPY.
LISTEN and NOTIFY Subscriptions, pattern matching, and reconnect catch-up.
PostGIS Exact EWKB transport, GeoArrow, and computational geometry with gometry.
Web apps and testing ASGI lifespan management and rolled-back pytest fixtures.
Observability OpenTelemetry spans and metrics, and gres.notice logging.
SQLAlchemy and Alembic The async dialect and migrations.