Skip to content
Commits on Source (3)
......@@ -9,6 +9,7 @@
1. [ ] Does your submission pass tests?
2. [ ] Does mvn checkstyle:check pass ?
3. [ ] Have you added your new test classes to an existing test suite?
### Changes to Existing Features:
......
......@@ -39,6 +39,7 @@ before_script:
- if [[ $TRAVIS_BRANCH == release/* ]]; then echo "MAVEN_OPTS='-Xmx1g'" > ~/.mavenrc; else echo "MAVEN_OPTS='-Xmx1g -Dgpg.skip=true'" > ~/.mavenrc; fi
- test "x$PG_VERSION" == 'x' || test "x$NO_HSTORE" == 'xY' || psql test -c 'CREATE EXTENSION hstore;' -U postgres
- test "x$PG_VERSION" == 'x' || test "x$CREATE_PLPGSQL" == 'x' || createlang -U postgres plpgsql test
- test "x$PG_VERSION" == 'x' || test "x$PLPGSQL_EXTENSION" == 'x' || psql test -c 'CREATE EXTENSION IF NOT EXISTS plpgsql;' -U postgres
env:
global:
......@@ -102,6 +103,36 @@ matrix:
- PG_VERSION=10
- JDK=12
- TZ=America/New_York # flips between −05:00 and −04:00
- jdk: openjdk-ea
sudo: required
addons:
postgresql: "11"
env:
- PG_VERSION=11
- XA=true
- COVERAGE=Y
- NO_HSTORE=Y
- PLPGSQL_EXTENSION=Y
- jdk: oraclejdk9
sudo: required
addons:
postgresql: "11"
env:
- PG_VERSION=11
- XA=true
- COVERAGE=Y
- NO_HSTORE=Y
- PLPGSQL_EXTENSION=Y
- jdk: oraclejdk8
sudo: required
addons:
postgresql: "11"
env:
- PG_VERSION=11
- XA=true
- COVERAGE=Y
- NO_HSTORE=Y
- PLPGSQL_EXTENSION=Y
- jdk: oraclejdk11
sudo: required
addons:
......@@ -188,24 +219,6 @@ matrix:
- COVERAGE=Y
- NO_HSTORE=Y
- CREATE_PLPGSQL=Y
- jdk: oraclejdk8
sudo: required
dist: precise
env:
- PG_VERSION=8.3
- XA=true
- COVERAGE=Y
- NO_HSTORE=Y
- CREATE_PLPGSQL=Y
- jdk: oraclejdk8
sudo: required
dist: precise
env:
- PG_VERSION=8.2
- XA=true
- COVERAGE=Y
- NO_HSTORE=Y
- CREATE_PLPGSQL=Y
- jdk: oraclejdk8
addons:
postgresql: "9.6"
......
......@@ -8,6 +8,10 @@ then
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
export PROJECT_VERSION=$(mvn -B -N org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[')
export PARENT_VERSION=$(mvn -B -N org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.parent.version | grep -v '\[')
export CHECK_PARENT_VERSION=$(mvn help:evaluate -Dexpression=project.parent.version -q -DforceStdout -f pgjdbc/pom.xml)
# just make sure that pom.xml has the same value as pgjdbc/pom.xml
test "$PARENT_VERSION" = "$CHECK_PARENT_VERSION"
exec ./packaging/rpm_ci
fi
......
......@@ -10,8 +10,33 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Fixed
## [42.2.8] (2019-09-13)
### Changed
### Added
### Fixed
* fix: Revert inet default Java type to PGObject and handle values with net masks [PR 1568](https://github.com/pgjdbc/pgjdbc/pull/1568)
## [42.2.7] (2019-09-03)
### Changed
### Added
- Expose parameter status messages (GUC_REPORT) to the user [PR 1435](https://github.com/pgjdbc/pgjdbc/pull/1435)
- Add automatic module name to manifest for jdk9+ [PR 1538](https://github.com/pgjdbc/pgjdbc/pull/1538)
- Log ignoring rollback when no transaction in progress [PR 1549](https://github.com/pgjdbc/pgjdbc/pull/1549)
- Map inet type to InetAddress [PR 1527](https://github.com/pgjdbc/pgjdbc/pull/1527) [issue 1134](https://github.com/pgjdbc/pgjdbc/issues/1134)
### Fixed
- fix [issue 1547](https://github.com/pgjdbc/pgjdbc/issues/1547) As long as peek returns some bytes do not reset the timeout, this allows us to continue checking until any async notifies are consumed [PR 1548](https://github.com/pgjdbc/pgjdbc/pull/1548)
- fix: [issue 1466](https://github.com/pgjdbc/pgjdbc/issues/1466) In logical decoding the if the backend was requesting a reply we… [PR 1467](https://github.com/pgjdbc/pgjdbc/pull/1467)
- fix: [issue 1534](https://github.com/pgjdbc/pgjdbc/issues/1534) Proleptic java.time support [PR 1539](https://github.com/pgjdbc/pgjdbc/pull/1539)
- fix Ensure isValid() will not last more than timeout seconds [PR 1557](https://github.com/pgjdbc/pgjdbc/pull/1557)
## [42.2.6] (2019-06-19)
### Known issues
- Waffle has [dropped support](https://github.com/Waffle/waffle/releases/tag/waffle-1.9.0) for 1.6, 1.7 as such the new waffle 1.9.x is only available in jre8
- Microseconds in timestamps might be truncated when transferred in binary mode
- 24:00 time handling is not consistent [issue 1385](https://github.com/pgjdbc/pgjdbc/issues/1385)
- Unexpected packet type during stream replication [issue 1466](https://github.com/pgjdbc/pgjdbc/issues/1466)
......@@ -219,4 +244,6 @@ thrown to caller to be dealt with so no need to log at this verbosity by pgjdbc
[42.2.4]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.3...REL42.2.4
[42.2.5]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.4...REL42.2.5
[42.2.6]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.5...REL42.2.6
[Unreleased]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.6...HEAD
[42.2.7]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.6...REL42.2.7
[42.2.8]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.7...REL42.2.8
[Unreleased]: https://github.com/pgjdbc/pgjdbc/compare/REL42.2.8...HEAD
......@@ -24,36 +24,36 @@ Most people do not need to compile PgJDBC. You can download the precompiled driv
### Maven Central
You can search on The Central Repository with GroupId and ArtifactId [![Maven Search](https://img.shields.io/badge/org.postgresql-postgresql-yellow.svg)][mvn-search] for:
[![Java 8](https://img.shields.io/badge/Java_8-42.2.5-blue.svg)][mvn-jre8]
[![Java 8](https://img.shields.io/badge/Java_8-42.2.7-blue.svg)][mvn-jre8]
```xml
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
<version>42.2.7</version>
</dependency>
```
[![Java 7](https://img.shields.io/badge/Java_7-42.2.5.jre7-blue.svg)][mvn-jre7]
[![Java 7](https://img.shields.io/badge/Java_7-42.2.7.jre7-blue.svg)][mvn-jre7]
```xml
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5.jre7</version>
<version>42.2.7.jre7</version>
</dependency>
```
[![Java 6](https://img.shields.io/badge/Java_6-42.2.5.jre6-blue.svg)][mvn-jre6]
[![Java 6](https://img.shields.io/badge/Java_6-42.2.7.jre6-blue.svg)][mvn-jre6]
```xml
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5.jre6</version>
<version>42.2.7.jre6</version>
</dependency>
```
[mvn-search]: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.postgresql%22%20AND%20a%3A%22postgresql%22 "Search on Maven Central"
[mvn-jre6]: http://search.maven.org/#artifactdetails|org.postgresql|postgresql|42.2.5.jre6|bundle
[mvn-jre7]: http://search.maven.org/#artifactdetails|org.postgresql|postgresql|42.2.5.jre7|bundle
[mvn-jre8]: http://search.maven.org/#artifactdetails|org.postgresql|postgresql|42.2.5|bundle
[mvn-jre6]: http://search.maven.org/#artifactdetails|org.postgresql|postgresql|42.2.7.jre6|bundle
[mvn-jre7]: http://search.maven.org/#artifactdetails|org.postgresql|postgresql|42.2.7.jre7|bundle
[mvn-jre8]: http://search.maven.org/#artifactdetails|org.postgresql|postgresql|42.2.7|bundle
#### Development snapshots
Snapshot builds (builds from `master` branch) are also deployed to Maven Central, so you can test current development version (test some bugfix) using:
......@@ -61,9 +61,9 @@ Snapshot builds (builds from `master` branch) are also deployed to Maven Central
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.6-SNAPSHOT</version> <!-- Java 8 -->
<version>42.2.6.jre7-SNAPSHOT</version> <!-- Java 7 -->
<version>42.2.6.jre6-SNAPSHOT</version> <!-- Java 6 -->
<version>42.2.8-SNAPSHOT</version> <!-- Java 8 -->
<version>42.2.8.jre7-SNAPSHOT</version> <!-- Java 7 -->
<version>42.2.8.jre6-SNAPSHOT</version> <!-- Java 6 -->
</dependency>
```
......@@ -141,7 +141,7 @@ In addition to the standard connection parameters the driver supports a number o
| readOnly | Boolean | true | Puts this connection in read-only mode |
| disableColumnSanitiser | Boolean | false | Enable optimization that disables column name sanitiser |
| assumeMinServerVersion | String | null | Assume the server is at least that version |
| currentSchema | String | null | Specify the schema to be set in the search-path |
| currentSchema | String | null | Specify the schema (or several schema separated by commas) to be set in the search-path |
| targetServerType | String | any | Specifies what kind of server to connect, possible values: any, master, slave (deprecated), secondary, preferSlave (deprecated), preferSecondary |
| hostRecheckSeconds | Integer | 10 | Specifies period (seconds) after which the host status is checked again in case it has changed |
| loadBalanceHosts | Boolean | false | If disabled hosts are connected in the given order. If enabled hosts are chosen randomly from the set of suitable candidates |
......
codecov:
notify:
after_n_builds: 10
after_n_builds: 11
require_ci_to_pass: false
comment:
layout: header, changes, diff
......
{
"Adam Brusselback" : "https://github.com/Tostino",
"Adrien" : "https://github.com/arobert-delfingen",
"AlBundy33" : "https://github.com/AlBundy33",
"AlexElin" : "https://github.com/AlexElin",
"Alexander Kjäll" : "https://github.com/alexanderkjall",
......@@ -21,6 +22,7 @@
"Eric McCormack" : "https://github.com/ericmack",
"Florin Asăvoaie" : "https://github.com/FlorinAsavoaie",
"George Kankava" : "https://github.com/georgekankava",
"Hajar Razip" : "https://github.com/mshajarrazip",
"Hari Babu Kommi" : "https://github.com/kommiharibabu",
"Harry Chan" : "https://github.com/hc-codersatlas",
"Hugh Cole-Baker" : "https://github.com/sigmaris",
......@@ -51,11 +53,13 @@
"Marios Trivyzas" : "https://github.com/matriv",
"Mark Nguyen" : "https://github.com/Mrk-Nguyen",
"Mathias Fußenegger" : "https://github.com/mfussenegger",
"Matteo Melli" : "https://github.com/teoincontatto",
"Michael Glaesemann" : "https://github.com/grzm",
"MichaelZg" : "https://github.com/michaelzg",
"Michele Mancioppi" : "https://github.com/michele-mancioppi",
"Minglei Tu" : "https://github.com/tminglei",
"Mykola Nikishov" : "https://github.com/manandbytes",
"Myo Wai Thant" : "https://github.com/myowaithant9",
"Nikolai Ivanov" : "https://github.com/nicktorwald",
"Pavel Raiskup" : "https://github.com/praiskup",
"Pawel" : "https://github.com/veselov",
......@@ -72,15 +76,18 @@
"Selene Feigl" : "https://github.com/sfeigl",
"Sidi Mohamed EL AATIFI" : "https://github.com/elaatifi",
"Simon Stelling" : "https://github.com/stellingsimon",
"Steinar Bang" : "https://github.com/steinarb",
"Stephen Nelson" : "https://github.com/lordnelson",
"Steve Ungerer" : "https://github.com/scubasau",
"Sualeh Fatehi" : "https://github.com/sualeh",
"Tanya Gordeeva" : "https://github.com/tmgordeeva",
"Thach Hoang" : "https://github.com/thachhoang",
"Tim Ward" : "https://github.com/timothyjward",
"Trygve Laugstøl" : "https://github.com/trygvis",
"Tyson Andre" : "https://github.com/TysonAndre",
"Vladimir Gordiychuk" : "https://github.com/Gordiychuk",
"Vladimir Sitnikov" : "https://github.com/vlsi",
"Vsevolod Kaimashnikov" : "https://github.com/vsevolodk",
"Zemian Deng" : "https://github.com/zemian",
"aryabukhin" : "https://github.com/aryabukhin",
"bazzargh" : "https://github.com/bazzargh",
......
libpgjava (42.2.8-1) unstable; urgency=medium
* New upstream version.
* Disable karaf feature, not yet available in Debian.
-- Christoph Berg <myon@debian.org> Mon, 16 Sep 2019 15:33:59 +0200
libpgjava (42.2.6-1) unstable; urgency=medium
* New upstream version.
......
......@@ -9,7 +9,7 @@ Bug: #900615
<dependency>
<groupId>com.ongres.scram</groupId>
<artifactId>client</artifactId>
- <version>1.0.0-beta.2</version>
- <version>2.1</version>
+ <version>debian</version>
+ <optional>true</optional>
</dependency>
......
--- a/pgjdbc/pom.xml
+++ b/pgjdbc/pom.xml
@@ -420,27 +420,6 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.karaf.tooling</groupId>
- <artifactId>karaf-maven-plugin</artifactId>
- <version>4.2.5</version>
- <extensions>true</extensions>
- <configuration>
- <startLevel>80</startLevel>
- <includeTransitiveDependency>false</includeTransitiveDependency>
- <aggregateFeatures>false</aggregateFeatures>
- <includeProjectArtifact>true</includeProjectArtifact>
- </configuration>
- <executions>
- <execution>
- <id>generate-features-file</id>
- <phase>package</phase>
- <goals>
- <goal>features-generate-descriptor</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
<pluginManagement>
01-missing-pom-configuration.patch
02-scram-optional.patch
03-javadoc.patch
04-no-karaf.patch
......@@ -7,6 +7,13 @@ version: 42.2.6
---
**Notable changes**
### Known issues
- Waffle has [dropped support](https://github.com/Waffle/waffle/releases/tag/waffle-1.9.0) for 1.6, 1.7 as such the new waffle 1.9.x is only available in jre8
- Microseconds in timestamps might be truncated when transferred in binary mode
- 24:00 time handling is not consistent [issue 1385](https://github.com/pgjdbc/pgjdbc/issues/1385)
- Unexpected packet type during stream replication [issue 1466](https://github.com/pgjdbc/pgjdbc/issues/1466)
- Driver goes missing after OSGi bundle restart [issue 1476](https://github.com/pgjdbc/pgjdbc/issues/1476)
### Changed
- Change IS_GENERATED to IS_GENERATEDCOLUMN as per spec [PR 1485](https://github.com/pgjdbc/pgjdbc/pull/1485)
- Fix missing metadata columns, and misspelled columns in PgDatabaseMetaData#getTables [PR 1323](https://github.com/pgjdbc/pgjdbc/pull/1323)
......@@ -29,12 +36,6 @@ version: 42.2.6
- Fix execution with big decimal in simple query mode. [PR 1463](https://github.com/pgjdbc/pgjdbc/pull/1463)
- Fix rounding for timestamps truncated to dates before 1970 [PR 1502](https://github.com/pgjdbc/pgjdbc/pull/1502)
### Known issues
- Microseconds in timestamps might be truncated when transferred in binary mode
- 24:00 time handling is not consistent [issue 1385](https://github.com/pgjdbc/pgjdbc/issues/1385)
- Unexpected packet type during stream replication [issue 1466](https://github.com/pgjdbc/pgjdbc/issues/1466)
- Driver goes missing after OSGi bundle restart [issue 1476](https://github.com/pgjdbc/pgjdbc/issues/1476)
<!--more-->
......
---
title: PostgreSQL JDBC Driver 42.2.7 Released
date: 2019-09-10 13:50:37 +0000
categories:
- new_release
version: 42.2.7
---
**Notable changes**
### Changed
### Added
- Expose parameter status messages (GUC_REPORT) to the user [PR 1435](https://github.com/pgjdbc/pgjdbc/pull/1435)
- Add automatic module name to manifest for jdk9+ [PR 1538](https://github.com/pgjdbc/pgjdbc/pull/1538)
- Log ignoring rollback when no transaction in progress [PR 1549](https://github.com/pgjdbc/pgjdbc/pull/1549)
- Map inet type to InetAddress [PR 1527](https://github.com/pgjdbc/pgjdbc/pull/1527) [issue 1134](https://github.com/pgjdbc/pgjdbc/issues/1134)
### Fixed
- fix [issue 1547](https://github.com/pgjdbc/pgjdbc/issues/1547) As long as peek returns some bytes do not reset the timeout, this allows us to continue checking until any async notifies are consumed [PR 1548](https://github.com/pgjdbc/pgjdbc/pull/1548)
- fix: [issue 1466](https://github.com/pgjdbc/pgjdbc/issues/1466) In logical decoding the if the backend was requesting a reply we… [PR 1467](https://github.com/pgjdbc/pgjdbc/pull/1467)
- fix: [issue 1534](https://github.com/pgjdbc/pgjdbc/issues/1534) Proleptic java.time support [PR 1539](https://github.com/pgjdbc/pgjdbc/pull/1539)
- fix Ensure isValid() will not last more than timeout seconds [PR 1557](https://github.com/pgjdbc/pgjdbc/pull/1557)
<!--more-->
**Commits by author**
Adrien (1):
* Ensure isValid() will not last more than timeout seconds [PR 1557](https://github.com/pgjdbc/pgjdbc/pull/1557) [b2eaefe](https://github.com/pgjdbc/pgjdbc/commit/b2eaefef1787b8ab0b8fcb266d10be4945a4fe25)
Craig Ringer (2):
* Expose parameter status messages (GUC_REPORT) to the user [PR 1435](https://github.com/pgjdbc/pgjdbc/pull/1435) [ce8333a](https://github.com/pgjdbc/pgjdbc/commit/ce8333a56ba74022adeb545b68e7d2bee32d966f)
* Make ConnectTimeout test accept NoRouteToHostException [PR 1526](https://github.com/pgjdbc/pgjdbc/pull/1526) [08d8129](https://github.com/pgjdbc/pgjdbc/commit/08d81291c69d02d8973d6b39dac82bdaad91f2ee)
Dave Cramer (8):
* note that waffle 1.9.x is only supported in jre8 version Update README to point to new maven coordinates [58804e9](https://github.com/pgjdbc/pgjdbc/commit/58804e9af41368fc9e956a7dd6cf799cb1d72420)
* add automatic module name to manifest for jdk9+ [PR 1538](https://github.com/pgjdbc/pgjdbc/pull/1538) [0600990](https://github.com/pgjdbc/pgjdbc/commit/0600990007669119b73ee2adb064184a4c62343f)
* fix issue 1547, as long as peek returns some bytes do not reset the timeout, this allows us to continue checking until any async notifies are consumed [PR 1548](https://github.com/pgjdbc/pgjdbc/pull/1548) [36a75cb](https://github.com/pgjdbc/pgjdbc/commit/36a75cbaab4bda1b55f48aa9064258051cd89b10)
* fix: In logical decoding the if the backend was requesting a reply we… [PR 1467](https://github.com/pgjdbc/pgjdbc/pull/1467) [f89e62c](https://github.com/pgjdbc/pgjdbc/commit/f89e62cdce4895f163dc95353cd31614347624b6)
* Log ignoring rollback when no transaction in progress [PR 1549](https://github.com/pgjdbc/pgjdbc/pull/1549) [bda74d7](https://github.com/pgjdbc/pgjdbc/commit/bda74d7eaa341c02427af4065d8321c8e45bfd83)
* fix assertion message [PR 1553](https://github.com/pgjdbc/pgjdbc/pull/1553) [ba82948](https://github.com/pgjdbc/pgjdbc/commit/ba8294841a2e589e15dfcb79dbd31a83ec615208)
* remove failing tests for PostgreSQL version 8.3 add in tests for 11 [89464a5](https://github.com/pgjdbc/pgjdbc/commit/89464a54777b9272893ab24bc5e28a24623e41bb)
* Fix travis parsing issue [634ac7d](https://github.com/pgjdbc/pgjdbc/commit/634ac7d8fee23eb5231ce91c616a64d120f8d8ee)
Hajar Razip (2):
* docs: add note on behavior of ResultSet.getString() [PR 1286](https://github.com/pgjdbc/pgjdbc/pull/1286) (#1528) [c30556c](https://github.com/pgjdbc/pgjdbc/commit/c30556c6c059f25d4ed43608d1b2a2f02a168389)
* docs: update resultset.md in head to reflect 94 [PR 1528](https://github.com/pgjdbc/pgjdbc/pull/1528) (#1536) [fc8efc9](https://github.com/pgjdbc/pgjdbc/commit/fc8efc9a98e86059701e8674017947c0b702cab1)
Matteo Melli (1):
* Updated scram to version 2.0 [PR 1532](https://github.com/pgjdbc/pgjdbc/pull/1532) [fcbbc3e](https://github.com/pgjdbc/pgjdbc/commit/fcbbc3e6408cc1bcf459b740c683f3db40a5050c)
Myo Wai Thant (1):
* Issue 1134 Map inet type to InetAddress [PR 1527](https://github.com/pgjdbc/pgjdbc/pull/1527) [1d0c477](https://github.com/pgjdbc/pgjdbc/commit/1d0c477abbe23f23681a924ee0d216a5f7188079)
Pavel Raiskup (2):
* fix parent version in pgjdbc/pom.xml as well [3db55da](https://github.com/pgjdbc/pgjdbc/commit/3db55daf2dccdd49555fd73b70be5c15609cccfa)
* rpm: remove karaf plugin [8495127](https://github.com/pgjdbc/pgjdbc/commit/8495127fe0450f94923251f67ab8e2208319437f)
Philippe Marschall (1):
* fix: proleptic java.time support [PR 1539](https://github.com/pgjdbc/pgjdbc/pull/1539) [60fa6d3](https://github.com/pgjdbc/pgjdbc/commit/60fa6d374a392d00475be0c128804c43b2852a35)
Sehrope Sarkuni (2):
* docs: Add note to GitHub PR templates about test suites [PR 1531](https://github.com/pgjdbc/pgjdbc/pull/1531) [51f3d0b](https://github.com/pgjdbc/pgjdbc/commit/51f3d0b75078e5c8687c7eae20ff37b28e65abec)
* Sort test suites and enable missed tests [PR 1530](https://github.com/pgjdbc/pgjdbc/pull/1530) [aa8778d](https://github.com/pgjdbc/pgjdbc/commit/aa8778d91bd166e2f351343855d6e0b0b71b1e62)
Steinar Bang (1):
* Add an apache karaf feature for the PostgreSQL JDBC driver to fix [PR 1552](https://github.com/pgjdbc/pgjdbc/pull/1552) (#1554) [e2f6e9f](https://github.com/pgjdbc/pgjdbc/commit/e2f6e9fc54a60f4b310bab9d83d74dbdc8941f32)
Tim Ward (1):
* Check that JDBC Connections that are closed by the server do not report as valid [PR 1533](https://github.com/pgjdbc/pgjdbc/pull/1533) [56399ef](https://github.com/pgjdbc/pgjdbc/commit/56399efddd25281ccefd90c56e9db084c550d195)
Vsevolod Kaimashnikov (1):
* Add more info about currentSchema property. [PR 1481](https://github.com/pgjdbc/pgjdbc/pull/1481) [d96ed59](https://github.com/pgjdbc/pgjdbc/commit/d96ed59eba6a2279da337684e696b198ec60685c)
<a name="contributors_{{ page.version }}"></a>
### Contributors to this release
We thank the following people for their contributions to this release.
[Adrien](https://github.com/arobert-delfingen)
[Craig Ringer](https://github.com/ringerc)
[Dave Cramer](davec@postgresintl.com)
[Hajar Razip](https://github.com/mshajarrazip)
[Matteo Melli](https://github.com/teoincontatto)
[Myo Wai Thant](https://github.com/myowaithant9)
[Pavel Raiskup](https://github.com/praiskup)
[Philippe Marschall](https://github.com/marschall)
[Sehrope Sarkuni](https://github.com/sehrope)
[Steinar Bang](https://github.com/steinarb)
[Tim Ward](https://github.com/timothyjward)
[Vsevolod Kaimashnikov](https://github.com/vsevolodk)
---
title: PostgreSQL JDBC Driver 42.2.8 Released
date: 2019-09-13 13:23:26 +0000
categories:
- new_release
version: 42.2.8
---
**Notable changes**
### Changed
### Added
### Fixed
<!--more-->
**Commits by author**
Sehrope Sarkuni (1):
* fix: Revert inet default Java type to PGObject and handle values with net masks [PR 1568](https://github.com/pgjdbc/pgjdbc/pull/1568) [3df32f9](https://github.com/pgjdbc/pgjdbc/commit/3df32f9bf9da38cc5f0fbb212a3034e4634dd3c7)
<a name="contributors_{{ page.version }}"></a>
### Contributors to this release
We thank the following people for their contributions to this release.
[Dave Cramer](davec@postgresintl.com)
[Sehrope Sarkuni](https://github.com/sehrope)
......@@ -17,3 +17,13 @@ The following must be considered when using the `ResultSet` interface:
it.
* Once you make another query with the `Statement` used to create a `ResultSet`,
the currently open `ResultSet` instance is closed automatically.
* When PreparedStatement API is used, `ResultSet` switches to binary mode after
five query executions (this default is set by the `prepareThreshold`
connection property, see [Server Prepared Statements](server-prepare.md)).
This may cause unexpected behavior when some methods are called. For example,
results on method calls such as `getString()` on non-string data types,
while logically equivalent, may be formatted differently after execution exceeds
the set `prepareThreshold` when conversion to object method switches to one
matching the return mode.
\ No newline at end of file
......@@ -411,7 +411,7 @@ Connection conn = DriverManager.getConnection(url);
* **currentSchema** = String
Specify the schema to be set in the search-path.
Specify the schema (or several schema separated by commas) to be set in the search-path.
This schema will be used to resolve unqualified object names used in statements over this connection.
* **targetServerType** = String
......
......@@ -16,6 +16,7 @@ next: geometric.html
* [Large Objects](largeobjects.html)
* [Listen / Notify](listennotify.html)
* [Server Prepared Statements](server-prepare.html)
* [Parameter Status Messages](parameterstatus.html)
* [Physical and Logical replication API](replication.html)
* [Arrays](arrays.html)
......
---
layout: default_docs
title: Physical and Logical replication API
header: Chapter 9. PostgreSQL™ Extensions to the JDBC API
resource: media
previoustitle: Parameter Status Messages
previous: server-prepare.html
nexttitle: Physical and Logical replication API
next: replication.html
---
# Parameter Status Messages
PostgreSQL supports server parameters, also called server variables or,
internally, Grand Unified Configuration (GUC) variables. These variables are
manipulated by the `SET` command, `postgresql.conf`, `ALTER SYSTEM SET`, `ALTER
USER SET`, `ALTER DATABASE SET`, the `set_config(...)` SQL-callable function,
etc. See [the PostgreSQL manual](https://www.postgresql.org/docs/current/config-setting.html).
For a subset of these variables the server will *automatically report changes
to the value to the client driver and application*. These variables are known
internally as `GUC_REPORT` variables after the name of the flag that enables
the functionality.
The server keeps track of all the variable scopes and reports when a variable
reverts to a prior value, so the client doesn't have to guess what the current
value is and whether some server-side function could've changed it. Whenever
the value changes, no matter why or how it changes, the server reports the new
effective value in a *Parameter Status* protocol message to the client. PgJDBC
uses many of these reports internally.
As of PgJDBC 42.2.6, it also exposes the parameter status information to user
applications via the PGConnection extensions interface.
## Methods
Two methods on `org.postgresql.PGConnection` provide the client interface to
reported parameters. Parameter names are case-insensitive and case-preserving.
* `Map PGConnection.getParameterStatuses()` - return a map of all reported
parameters and their values.
* `String PGConnection.getParameterStatus()` - shorthand to retrieve one
value by name, or null if no value has been reported.
See the `PGConnection` JavaDoc for details.
## Example
If you're working directly with a `java.sql.Connection` you can
import org.postgresql.PGConnection;
void my_function(Connection conn) {
System.out.println("My application name is " +
((PGConnection)conn).getParameterStatus("application_name"));
}
## Other client drivers
The `libpq` equivalent is the `PQparameterStatus(...)` API function.
......@@ -3,8 +3,8 @@ layout: default_docs
title: Physical and Logical replication API
header: Chapter 9. PostgreSQL™ Extensions to the JDBC API
resource: media
previoustitle: Server Prepared Statements
previous: server-prepare.html
previoustitle: Parameter Status Messages
previous: parameterstatus.html
nexttitle: Arrays
next: arrays.html
---
......
......@@ -17,3 +17,11 @@ The following must be considered when using the `ResultSet` interface:
it.
* Once you make another query with the `Statement` used to create a `ResultSet`,
the currently open `ResultSet` instance is closed automatically.
* When PreparedStatement API is used, `ResultSet` switches to binary mode after
five query executions (this default is set by the `prepareThreshold`
connection property, see [Server Prepared Statements](server-prepare.md)).
This may cause unexpected behavior when some methods are called. For example,
results on method calls such as `getString()` on non-string data types,
while logically equivalent, may be formatted differently after execution exceeds
the set `prepareThreshold` when conversion to object method switches to one
matching the return mode.
\ No newline at end of file