From e3519cfd754cd54d856234e1676e0a45691a3a8b Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 9 May 2020 10:24:12 -0500 Subject: [PATCH] Document supported versions --- .travis.yml | 4 ++-- README.md | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1bc5a8ae..01fa9f5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: go go: - - 1.x + - 1.14.x + - 1.13.x - tip # Derived from https://github.com/lib/pq/blob/master/.travis.yml @@ -20,7 +21,6 @@ env: - PGVERSION=10 - PGVERSION=9.6 - PGVERSION=9.5 - - PGVERSION=9.4 before_script: - ./travis/before_script.bash diff --git a/README.md b/README.md index cd6f8c4f..2ffc0530 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,10 @@ PGX_TEST_DATABASE="host=/var/run/postgresql database=pgx_test" go test ./... In addition, there are tests specific for PgBouncer that will be executed if `PGX_TEST_PGBOUNCER_CONN_STRING` is set. +## Supported Go and PostgreSQL Versions + +pgx supports the same versions of Go and PostgreSQL that are supported by their respective teams. For [Go](https://golang.org/doc/devel/release.html#policy) that is the two most recent major releases and for [PostgreSQL](https://www.postgresql.org/support/versioning/) the major releases in the last 5 years. This means pgx supports Go 1.13 and higher and PostgreSQL 9.5 and higher. + ## Version Policy pgx follows semantic versioning for the documented public API on stable releases. `v4` is the latest stable major version.