GeezerVison is showing github.com — Deprecate all PostgreSQL versions older than 9.1 (#3335) · pgjdbc/pgjdbc@fc60537
File treeExpand file treeCollapse file tree Open diff view settings pgjdbc/src/main/java/org/postgresql
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/matrix.js +2-4Lines changed: 2 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,8 +55,6 @@ matrix.addAxis({ | 55 | 55 | title: x => 'PG ' + x, | 56 | 56 | // Strings allow versions like 18-ea | 57 | 57 | values: [ | 58 | | - '8.4', | 59 | | - '9.0', | 60 | 58 | '9.1', | 61 | 59 | '9.2', | 62 | 60 | '9.3', | @@ -70,7 +68,7 @@ matrix.addAxis({ | 70 | 68 | '14', | 71 | 69 | '15', | 72 | 70 | '16', | 73 | | - '17beta1' | | 71 | + '17beta2' | 74 | 72 | ] | 75 | 73 | }); | 76 | 74 |
| @@ -159,7 +157,7 @@ matrix.addAxis({ | 159 | 157 | title: x => (x.value === 'yes' ? '' : 'no_') + 'scram', | 160 | 158 | values: [ | 161 | 159 | {value: 'yes', weight: 10}, | 162 | | - {value: 'no', weight: 10}, | | 160 | + {value: 'no', weight: 5}, | 163 | 161 | ] | 164 | 162 | }); | 165 | 163 |
| |
Collapse file Copy file name to clipboardExpand all lines: CONTRIBUTING.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ The purpose of the *Guidelines for Contributing* is to create a collaboration ba | 6 | 6 | **Do NOT** blindly obey these guidelines, use them (after understanding) where they make sense. | 7 | 7 |
| 8 | 8 | Currently the PgJDBC driver supports the Oracle and OpenJDK Java implementations of | 9 | | -versions **8** and **higher**; and PostgreSQL server versions from **8.4** and higher. | | 9 | +versions **8** and **higher**; and PostgreSQL server versions from **9.1** and higher. | 10 | 10 |
| 11 | 11 | Some PostgreSQL forks *might* work but are not officially supported, we support vendors of forks | 12 | 12 | that want to improve this driver by sending us pull requests that are not disruptive to the | |
Collapse file Copy file name to clipboardExpand all lines: README.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,8 @@ The current version of the driver should be compatible with **PostgreSQL 8.4 and | 19 | 19 |
| 20 | 20 | PgJDBC regression tests are run against all PostgreSQL versions since 9.1, including "build PostgreSQL from git master" version. There are other derived forks of PostgreSQL but they have not been certified to run with PgJDBC. If you find a bug or regression on supported versions, please file an [Issue](https://github.com/pgjdbc/pgjdbc/issues). | 21 | 21 |
| | 22 | +> **Note:** PgJDBC versions since 42.8.0 are not guaranteed to work with PostgreSQL older than 9.1. | | 23 | +
| 22 | 24 | ## Get the Driver | 23 | 25 | Most people do not need to compile PgJDBC. You can download the precompiled driver (jar) from the [PostgreSQL JDBC site](https://jdbc.postgresql.org/download/) or using your chosen dependency management tool: | 24 | 26 |
| |
Collapse file Copy file name to clipboardExpand all lines: TESTING.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,7 +53,7 @@ If you have Docker, you can use `docker-compose` to launch test database (see [d | 53 | 53 | to reproduce CI errors locally. It respects all the same environment variables | 54 | 54 | used by the CI matrix: | 55 | 55 |
| 56 | | - PGV = "8.4" | "9.0" | ... "13" ... - PostgreSQL server version (defaults to latest) | | 56 | + PGV = "9.2" | "9.6" | ... "13" ... - PostgreSQL server version (defaults to latest) | 57 | 57 | SSL = "yes" | "no" - Whether to enable SSL | 58 | 58 | XA = "yes" | "no" - Whether to enable XA for prepared transactions | 59 | 59 | SCRAM = "yes" | "no" - Whether to enable SCRAM authentication | @@ -67,9 +67,9 @@ If you have Docker, you can use `docker-compose` to launch test database (see [d | 67 | 67 |
| 68 | 68 | docker/bin/postgres-server | 69 | 69 |
| 70 | | - To start a v8.4 server without SSL: | | 70 | + To start a v9.2 server without SSL: | 71 | 71 |
| 72 | | - PGV=8.4 SSL=off docker/bin/postgres-server | | 72 | + PGV=9.2 SSL=off docker/bin/postgres-server | 73 | 73 |
| 74 | 74 | To start a v10 server with SCRAM disabled: | 75 | 75 |
| |
Collapse file Copy file name to clipboardExpand all lines: docker/bin/postgres-server +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ set -euo pipefail | 7 | 7 | # to reproduce CI errors locally. It respects all the same environment variables | 8 | 8 | # used by the CI matrix: | 9 | 9 | # | 10 | | -# PGV = "8.4" | "9.0" | ... "13" ... - PostgreSQL server version (defaults to latest) | | 10 | +# PGV = "9.2" | "9.6" | ... "13" ... - PostgreSQL server version (defaults to latest) | 11 | 11 | # SSL = "yes" | "no" - Whether to enable SSL | 12 | 12 | # XA = "yes" | "no" - Whether to enable XA for prepared transactions | 13 | 13 | # SCRAM = "yes" | "no" - Whether to enable SCRAM authentication | @@ -21,9 +21,9 @@ set -euo pipefail | 21 | 21 | # | 22 | 22 | # docker/bin/postgres-server | 23 | 23 | # | 24 | | -# To start a v8.4 server without SSL: | | 24 | +# To start a v9.2 server without SSL: | 25 | 25 | # | 26 | | -# PGV=8.4 SSL=off docker/bin/postgres-server | | 26 | +# PGV=9.2 SSL=off docker/bin/postgres-server | 27 | 27 | # | 28 | 28 | # To start a v10 server with SCRAM disabled: | 29 | 29 | # | |
Collapse file Copy file name to clipboardExpand all lines: docs/content/download/_index.md +5-1Lines changed: 5 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,11 @@ Binary JAR file downloads of the JDBC driver are available here and the current | 8 | 8 |
| 9 | 9 | ## Latest Versions | 10 | 10 |
| 11 | | -This is the current version of the driver. Unless you have unusual requirements (running old applications or JVMs), this is the driver you should be using. It supports PostgreSQL 8.2 or newer and requires Java 6 or newer. It contains support for SSL and the javax.sql package. | | 11 | +This is the current version of the driver. Unless you have unusual requirements (running old applications or JVMs), this is the driver you should be using. It supports PostgreSQL 8.4 or newer and requires Java 6 or newer. It contains support for SSL and the javax.sql package. | | 12 | + | | 13 | +> **Note:** | | 14 | +> | | 15 | +> Testing of PostgreSQL versions is currently limited to versions 9.1 and newer. PgJDBC versions since 42.8.0 are not guaranteed to work with PostgreSQL older than 9.1. | 12 | 16 |
| 13 | 17 | {{< recent-versions >}} | 14 | 18 |
| |
Collapse file Copy file name to clipboardExpand all lines: docs/data/versions.toml +2-9Lines changed: 2 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,13 +7,6 @@ suffix="" | 7 | 7 | description= "If you are using Java 8 or newer then you should use the JDBC 4.2 version." | 8 | 8 | url= "/download/postgresql-42.7.3.jar" | 9 | 9 |
| 10 | | -[[recent]] | 11 | | -j_name= "Java 8" | 12 | | -version= "42.6.2" | 13 | | -suffix="" | 14 | | -description= "If you are using Java 8 or newer then you should use the JDBC 4.2 version." | 15 | | -url= "/download/postgresql-42.6.2.jar" | 16 | | - | 17 | 10 | [[recent]] | 18 | 11 | j_name= "Java 7" | 19 | 12 | version= "42.2.29" | @@ -38,10 +31,10 @@ url= "/download/postgresql-42.7.2.jar" | 38 | 31 |
| 39 | 32 | [[past]] | 40 | 33 | j_name= "Java 8" | 41 | | -version= "42.6.1" | | 34 | +version= "42.6.2" | 42 | 35 | suffix="" | 43 | 36 | description= "If you are using Java 8 or newer then you should use the JDBC 4.2 version." | 44 | | -url= "/download/postgresql-42.6.1.jar" | | 37 | +url= "/download/postgresql-42.6.2.jar" | 45 | 38 |
| 46 | 39 | [[past]] | 47 | 40 | j_name= "Java 8" | |
Collapse file Copy file name to clipboardExpand all lines: pgjdbc/src/main/java/org/postgresql/PGProperty.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -79,7 +79,7 @@ public enum PGProperty { | 79 | 79 | */ | 80 | 80 | ASSUME_MIN_SERVER_VERSION( | 81 | 81 | "assumeMinServerVersion", | 82 | | - null, | | 82 | + "9.1", | 83 | 83 | "Assume the server is at least that version"), | 84 | 84 |
| 85 | 85 | /** | |
Collapse file Copy file name to clipboardExpand all lines: pgjdbc/src/main/java/org/postgresql/core/ServerVersion.java +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | public enum ServerVersion implements Version { | 17 | 17 |
| 18 | 18 | INVALID("0.0.0"), | | 19 | + @Deprecated | 19 | 20 | v8_2("8.2.0"), | | 21 | + @Deprecated | 20 | 22 | v8_3("8.3.0"), | | 23 | + @Deprecated | 21 | 24 | v8_4("8.4.0"), | | 25 | + @Deprecated | 22 | 26 | v9_0("9.0.0"), | 23 | 27 | v9_1("9.1.0"), | 24 | 28 | v9_2("9.2.0"), | |
Collapse file Copy file name to clipboardExpand all lines: pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -272,8 +272,8 @@ public PgConnection(HostSpec[] hostSpecs, | 272 | 272 | // Now make the initial connection and set up local state | 273 | 273 | this.queryExecutor = ConnectionFactory.openConnection(hostSpecs, info); | 274 | 274 |
| 275 | | - // WARNING for unsupported servers (8.1 and lower are not supported) | 276 | | - if (LOGGER.isLoggable(Level.WARNING) && !haveMinimumServerVersion(ServerVersion.v8_2)) { | | 275 | + // WARNING for unsupported servers (9.0 and lower are not supported) | | 276 | + if (LOGGER.isLoggable(Level.WARNING) && !haveMinimumServerVersion(ServerVersion.v9_1)) { | 277 | 277 | LOGGER.log(Level.WARNING, "Unsupported Server Version: {0}", queryExecutor.getServerVersion()); | 278 | 278 | } | 279 | 279 |
| |
|