Source: https://gres.monicz.dev/about/compatibility/

# 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](https://gres.monicz.dev/guide/connections/#lifecycle-and-timeouts) disables that downgrade. [OAuth authentication](https://gres.monicz.dev/guide/connections/#oauth-bearer-tokens) 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`](https://gres.monicz.dev/guide/bulk/#export-json-with-copy), [`WAIT FOR LSN` on a standby](https://gres.monicz.dev/guide/connections/#read-your-own-writes-from-a-standby), the `oid8` and `regdatabase` types, and [login warnings](https://gres.monicz.dev/guide/observability/#log-server-notices) 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](https://gres.monicz.dev/guide/pools/#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.
