Skip to content

Compatibility

Python

Gres supports CPython 3.11 and newer, including free-threaded builds, in the main interpreter only. Subinterpreters and other Python implementations are not supported. Each connection and pool belongs to the asyncio event loop that opened it.

PostgreSQL

Continuous integration uses PostgreSQL 19.0 with PostGIS 3.7.0 on Linux, macOS and Windows, and also exercises pgvector on Linux and macOS. Older PostgreSQL releases are untested. Gres speaks protocol 3: by default it requests 3.2 and accepts a server's downgrade to 3.0 rather than rejecting the server by release number. Requiring protocol 3.2 disables that downgrade. OAuth authentication requires a server that offers it; PostgreSQL added it in 18.

Extension types are supported when the extension is installed in the database:

Extension Types
PostGIS geometry, geography
pgvector vector, halfvec, sparsevec
hstore hstore

PostgreSQL 19 additions work through ordinary calls: JSON output from COPY, WAIT FOR LSN on a standby, the oid8 and regdatabase types, and login warnings such as an expiring password.

Connection poolers

Direct connections and session pooling need no configuration. Behind PgBouncer transaction pooling, set pool_mode='transaction'; see PgBouncer transaction pooling. LISTEN requires a direct connection or session pooling.

Platforms

Gres supports Linux, macOS and Windows. Unix domain sockets are available on Linux and macOS.

Versioning

Gres follows semantic versioning. Names exported from gres and gres.errors and their documented behavior are the public interface. Names beginning with an underscore, including the gres._lib extension module, can change in any release.