Thread: [pgjdbc/pgjdbc] 866c6a: remove postgresql-jre6 and postgresql-jre7 project...

[pgjdbc/pgjdbc] 866c6a: remove postgresql-jre6 and postgresql-jre7 project...

From
Dave Cramer
Date:
Branch: refs/heads/release/42.2
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 866c6a9e4cc42d9c279d68b8c756f562eaf0f249
      https://github.com/pgjdbc/pgjdbc/commit/866c6a9e4cc42d9c279d68b8c756f562eaf0f249
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M .travis.yml
    M .travis/travis_build.sh
    M .travis/travis_deploy.sh
    M .travis/travis_release.sh
    M CONTRIBUTING.md
    M README.md
    M benchmarks/src/jmh/java/org/postgresql/benchmark/statement/FinalizeStatement.java
    M build.gradle.kts
    M codecov.yml
    M gradle.properties
    R pgjdbc-jre6/build.gradle.kts
    R pgjdbc-jre6/gradle.properties
    R pgjdbc-jre7/build.gradle.kts
    R pgjdbc-jre7/gradle.properties
    M pgjdbc/src/main/java/org/postgresql/Driver.java
    M pgjdbc/src/main/java/org/postgresql/core/JavaVersion.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
    M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/BatchResultHandler.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java
    M pgjdbc/src/main/java/org/postgresql/largeobject/LargeObject.java
    M pgjdbc/src/main/java/org/postgresql/replication/PGReplicationStream.java
    M pgjdbc/src/main/java/org/postgresql/ssl/LibPQFactory.java
    M pgjdbc/src/main/java/org/postgresql/util/GT.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/RefCursorTest.java
    M pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java
    M settings.gradle.kts

  Log Message:
  -----------
  remove postgresql-jre6 and postgresql-jre7 projects (#1848)


  Commit: 51152ebc94354a22c0ae58e6caa5050bb6ff4df0
      https://github.com/pgjdbc/pgjdbc/commit/51152ebc94354a22c0ae58e6caa5050bb6ff4df0
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M build.gradle.kts

  Log Message:
  -----------
  chore: remove dependency between checkstyle and compilation tasks

Checkstyle 8.26 does not need classpath, see https://github.com/gradle/gradle/issues/14227


  Commit: 4a4e664a868421e4ea8283b685a8abdf4ec907ab
      https://github.com/pgjdbc/pgjdbc/commit/4a4e664a868421e4ea8283b685a8abdf4ec907ab
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-08-25 (Tue, 25 Aug 2020)

  Changed paths:
    M pgjdbc/build.gradle.kts

  Log Message:
  -----------
  fix: avoid removal type annotations on "this" so the source archive is buildable

"this" type annotations are Java 8+, so we no longer need to remove them.


  Commit: 705b660a11a975be958ed81ce2e2c2a8e48aaede
      https://github.com/pgjdbc/pgjdbc/commit/705b660a11a975be958ed81ce2e2c2a8e48aaede
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java

  Log Message:
  -----------
  Check for credential cache before requesting GSS encryption (#1883)

* Check for credential cache before requesting GSS encryption

* use Credentials.acquireTGTFromCache to get Credential Cache

* suppress null check for acquireTGTFromCache 2nd attempt


  Commit: 67158b02fa4bcca0e4df014134d6cf36b0c537b7
      https://github.com/pgjdbc/pgjdbc/commit/67158b02fa4bcca0e4df014134d6cf36b0c537b7
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/util/PGtokenizer.java
    A pgjdbc/src/test/java/org/postgresql/util/PGtokenizerTest.java

  Log Message:
  -----------
  fix: PgTokenizer was ignoring last empty token (#1882)

* fix: PgTokenizer was ignoring last empty token fixes #1881


  Commit: 4961557d1f96c1f5395976595644e496c5e94593
      https://github.com/pgjdbc/pgjdbc/commit/4961557d1f96c1f5395976595644e496c5e94593
  Author: Andrew Dunstan <andrew.dunstan@2ndQuadrant.com>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42CallableStatementTest.java

  Log Message:
  -----------
  Allow setNull with a REF_CURSOR type (#1885)

* Allow setNull with a REF_CURSOR type

* Add test case for setNull with REF_CURSOR type.


  Commit: 93d8b68d61c125a94ecb9b167c5c343045fd455b
      https://github.com/pgjdbc/pgjdbc/commit/93d8b68d61c125a94ecb9b167c5c343045fd455b
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-09-20 (Sun, 20 Sep 2020)

  Changed paths:
    M pgjdbc/src/test/java/org/postgresql/util/PGtokenizerTest.java

  Log Message:
  -----------
  fix checkstyle (#1888)


  Commit: 2393241418339ebed6d17231a46e77f0b7a62ca1
      https://github.com/pgjdbc/pgjdbc/commit/2393241418339ebed6d17231a46e77f0b7a62ca1
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java

  Log Message:
  -----------
  fix: handle smallserial correctly fixes #1897 (#1899)


  Commit: 2c02d4e4637945b33aaea70f9597be879382b300
      https://github.com/pgjdbc/pgjdbc/commit/2c02d4e4637945b33aaea70f9597be879382b300
  Author: Jorge Solorzano <jorsol@gmail.com>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSetMetaData.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java

  Log Message:
  -----------
  feat: add smallserial metadata (#899)

PostgreSQL 9.2 adds a SMALLSERIAL data type, this reports the correct metadata information when a column is a
smallserial(int2 with sequence), similar to how a serial or bigserial data types are reported.
 


  Commit: 01dbbac5b6c43e1079a463119e13c1bee74cbfdb
      https://github.com/pgjdbc/pgjdbc/commit/01dbbac5b6c43e1079a463119e13c1bee74cbfdb
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

  Changed paths:
    M pgjdbc/build.gradle.kts

  Log Message:
  -----------
  fix:remove osgi from karaf fixes Issue #1891 (#1902)


  Commit: f525f530d379bfb9f6d3ccce9c2f538b8e412824
      https://github.com/pgjdbc/pgjdbc/commit/f525f530d379bfb9f6d3ccce9c2f538b8e412824
  Author: Michael Ernst <mernst@cs.washington.edu>
  Date:   2020-10-09 (Fri, 09 Oct 2020)

  Changed paths:
    M CONTRIBUTING.md

  Log Message:
  -----------
  Small tweaks to discussion of null safety


  Commit: 770b6d3ebd8ac78dd24e4628740652aae2bb3efd
      https://github.com/pgjdbc/pgjdbc/commit/770b6d3ebd8ac78dd24e4628740652aae2bb3efd
  Author: Peter Eisentraut <peter@eisentraut.org>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java

  Log Message:
  -----------
  fix: send type void parameters as null value (#1922)

The previous code sent parameters of type void (used for OUT
parameters of functions) with a text value of "null".  While this
doesn't affect anything, since the value is ignored anyway, it's
somewhat confusing, especially if it shows up in debug traces and
error messages, and it's also a bit wasteful to send 4 bytes for
nothing.  So instead, send those parameters as a null value, which
seems semantically saner.


  Commit: ed67c28270e39067ff2bdbf8650d3c695acb2506
      https://github.com/pgjdbc/pgjdbc/commit/ed67c28270e39067ff2bdbf8650d3c695acb2506
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/PGProperty.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/GSSEncMode.java

  Log Message:
  -----------
  Change gssEncMode default to allow. this is consistent with 42.2.x (#1921)


  Commit: bda9702398dcda4f291b6f156317e7e02cee1b88
      https://github.com/pgjdbc/pgjdbc/commit/bda9702398dcda4f291b6f156317e7e02cee1b88
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M buildSrc/build.gradle.kts

  Log Message:
  -----------
  chore: make buildSrc.jar reproducible


  Commit: eb63d59f5d2780acd45aa86aadd070fe57eda72c
      https://github.com/pgjdbc/pgjdbc/commit/eb63d59f5d2780acd45aa86aadd070fe57eda72c
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  chore: use cleanup-gradle-cache for Travis cache cleanup


  Commit: 98839ac9455142e3021a10bda195172e20f769b9
      https://github.com/pgjdbc/pgjdbc/commit/98839ac9455142e3021a10bda195172e20f769b9
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M .github/workflows/main.yml
    M pgjdbc/reduced-pom.xml

  Log Message:
  -----------
  test: add GitHub CI for testing source distribution


  Commit: 07971f8a1c43f03046454de63ce1338a66b6502e
      https://github.com/pgjdbc/pgjdbc/commit/07971f8a1c43f03046454de63ce1338a66b6502e
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M pgjdbc/reduced-pom.xml

  Log Message:
  -----------
  chore: make javadoc optional for building from a reduced-pom.xml

javadoc can be built with mvn -Pjavadoc ...


  Commit: 57ca33353bb1e05135063a79069c1c320662ae1c
      https://github.com/pgjdbc/pgjdbc/commit/57ca33353bb1e05135063a79069c1c320662ae1c
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java

  Log Message:
  -----------
  chore: try fully-qualified import for krb5.Credentials to workaround xmvn-javadoc


  Commit: 3a271f11485ac22086414b87aa90ad87599ca19c
      https://github.com/pgjdbc/pgjdbc/commit/3a271f11485ac22086414b87aa90ad87599ca19c
  Author: odubaj <44674278+odubaj@users.noreply.github.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M packaging/rpm/postgresql-jdbc.spec.tpl

  Log Message:
  -----------
  Remove dependency on java-comment-preprocesor

This dependency is no longer needed for package build


  Commit: 05d6ce2a2bc1ab37864bc744d8bb4456985a12f2
      https://github.com/pgjdbc/pgjdbc/commit/05d6ce2a2bc1ab37864bc744d8bb4456985a12f2
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java

  Log Message:
  -----------
  fix: allow specifying binaryTransferEnable even for those types that are not enabled by default

#1637 made it impossible to activate binary transfer for the types except the default ones.


  Commit: 3eca3a76aa4a04cb28cb960ed674cb67db30b5e3
      https://github.com/pgjdbc/pgjdbc/commit/3eca3a76aa4a04cb28cb960ed674cb67db30b5e3
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/util/ByteConverter.java
    A pgjdbc/src/test/java/org/postgresql/test/jdbc2/NumericTransferTest.java

  Log Message:
  -----------
  fix: binary transfer for numeric

fixes #1935


  Commit: 4c0e70ccda20b4c187ee276a5ded18aaa28a2dd8
      https://github.com/pgjdbc/pgjdbc/commit/4c0e70ccda20b4c187ee276a5ded18aaa28a2dd8
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    M .github/ISSUE_TEMPLATE/bug_report.md

  Log Message:
  -----------
  Update issue templates

added link to stackoverflow


  Commit: 94ba187a67ee33c122f7df747afdf7480e60b0c4
      https://github.com/pgjdbc/pgjdbc/commit/94ba187a67ee33c122f7df747afdf7480e60b0c4
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    M build.properties

  Log Message:
  -----------
  remove gssEncMode to test default in tests, should default to allow now (#1928)


  Commit: b5ef374659a14cbaccfba0682cfac709f72ec04b
      https://github.com/pgjdbc/pgjdbc/commit/b5ef374659a14cbaccfba0682cfac709f72ec04b
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    M TESTING.md

  Log Message:
  -----------
  Update TESTING.md (#1925)


  Commit: 18cb3f6531861bfa3afdf55f780dd46e60df9f1c
      https://github.com/pgjdbc/pgjdbc/commit/18cb3f6531861bfa3afdf55f780dd46e60df9f1c
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Update README.md (#1923)


  Commit: 375cb3795c3330f9434cee9353f0791b86125914
      https://github.com/pgjdbc/pgjdbc/commit/375cb3795c3330f9434cee9353f0791b86125914
  Author: MMeent <boekewurm@gmail.com>
  Date:   2020-11-11 (Wed, 11 Nov 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/TypeInfo.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java

  Log Message:
  -----------
  Fix: Rework sql type gathering to use OID instead of typname. This does not have the issue of name shadowing /
qual-names,and has the added benefit of fixing #1948. (#1949)
 

Types that are not on the search path (e.g. they are shadowed, or in a schema that is not included in the search path)
arestored in the caches as fully qualified type names and OIDs. As we cannot easily query the pg_type catalog using
qualifiedtype names, we replace the pgTypeName with the oid of the type name to query properties of the type.
 

Testcases are added to improve coverage of correctly detecting SQL types that are not on the path, but are available
throughOID or qualified lookup. These types are stored internally as a fully qualified type, but we cannot use this
namefor lookup in pg_type.
 

Special consideration has been given to Oid.UNSPECIFIED, as that needs to be mapped to Types.OTHER without first
hittingthe database. That mapping is static, but is not in `types` because it is not an actual type.
 

Fixes #1948

Co-authored-by: Matthias van de Meent <matthias.vandemeent@cofano.nl>


  Commit: dbb30af18e2dccb6e49040dd3108245935605340
      https://github.com/pgjdbc/pgjdbc/commit/dbb30af18e2dccb6e49040dd3108245935605340
  Author: Sehrope Sarkuni <sehrope@jackdb.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/copy/PGCopyOutputStream.java
    M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java

  Log Message:
  -----------
  Fix PGCopyOutputStream out of order writes (#1854)

* test: Add TestUtil.queryForString(...) helper

Adds a helper method to execute a query and reads a single text column as a string.

* test: Add failing test for interleaved usage of PGCopyOutputStream APIs

Adds a failing test that writes to a PGCopyOutputStream using both the write(byte[])
and write(ByteStreamWriter) APIs to catch internal buffering breaking the order.

* fix: Flush PGCopyOutputStream internal buffer before writing via ByteStreamWriter

Fixes out of order writes when interleaving writes using buffered write(byte[]) and
writeToCopy(ByteStreamWriter) APIs.


  Commit: 7e2cd55c1fbe289c0f581ac5081ef6998de75ad0
      https://github.com/pgjdbc/pgjdbc/commit/7e2cd55c1fbe289c0f581ac5081ef6998de75ad0
  Author: Hugo Abreu <6619758+hugomiguelabreu@users.noreply.github.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
    A pgjdbc/src/test/java/org/postgresql/jdbc/ConnectionValidTest.java

  Log Message:
  -----------
  isValid() timeout should not be blocked (#1943)

The usage of `setQueryTimeout();` with the same value as the `setNetworkTimeout();` is blocking the current transaction
timeout.
The timeouts are blocking each other with this approach.


  Commit: 0b74ae13c4562d10a05ed2dcd253e0be37936032
      https://github.com/pgjdbc/pgjdbc/commit/0b74ae13c4562d10a05ed2dcd253e0be37936032
  Author: costa100 <costa.basil@gmail.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    A pgjdbc/src/test/java/org/postgresql/jdbc/BitFieldTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java

  Log Message:
  -----------
  Fixed issue #892 (#1910)

* Fixed issue #892. Preserved backwards compatibility.


  Commit: ff22a3c31bb423b08637c237cb2e5bc288008e18
      https://github.com/pgjdbc/pgjdbc/commit/ff22a3c31bb423b08637c237cb2e5bc288008e18
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M README.md
    M docs/documentation/head/connect.md
    M pgjdbc/src/main/java/org/postgresql/PGConnection.java
    M pgjdbc/src/main/java/org/postgresql/PGProperty.java
    M pgjdbc/src/main/java/org/postgresql/PGStatement.java
    M pgjdbc/src/main/java/org/postgresql/core/PGStream.java
    M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
    A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchCache.java
    A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchCacheEntry.java
    M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
    A pgjdbc/src/test/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchCacheTest.java
    M pgjdbc/src/test/java/org/postgresql/jdbc/AbstractArraysTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
    A pgjdbc/src/test/java/org/postgresql/test/jdbc42/AdaptiveFetchSizeTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java

  Log Message:
  -----------
  feat: implement adaptive fetching (#1718)

* feat: implementation of adaptive fetching

Implementation of adaptive fetching logic during process of fetching result set.
Change adds three new properties used with adaptive fetching:
- adaptiveFetch - use to enable/disable work of adaptive fetching
- adaptiveFetchMinimum - use to define minimum size computed during adaptive fetching
- adaptiveFetchmaximum - use to define maximum size computed during adaptive fetching
Adaptive fetching is used to compute fetch size to fully use size defined by maxResultBuffer.
Computing is made by dividing maxResultBuffer size by max row result size noticed so far.
Each query have seperate adaptive fetch size computed, but same queries have it shared.
If adaptive fetch is turned on, first fetch is going to be made with defaultRowFetchSize,
next fetching of resultSet will be made with computed adaptive fetch size.
If adaptive fetch is turned on during fetching, then first fetching made by ResultSet will
be made with defaultRowFetchSize, next will use computed adaptive fetch size.
Additionally, resultSet have new method - getLastUsedFetchSize to get fetch size used during
last fetching. If adaptive fetching is turned on, then getFetchSize will return lastUsedFetchSize.
Property adaptiveFetch need properties defaultRowFetchSize and maxResultBuffer to work.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Fix of type start in HashMap in constructor of AdaptiveFetchQueryMonitoring

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Documentation update in file connect.md

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

More explanation for setMaxRowSize method in PGStream class.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Commit to add:
- unit tests for AdaptiveFetchQueryMonitoring class;
- some style fixes (removing extra spaces, simpler code in setMaxRowSize method in PGStream class).

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Commit to add:
- integration tests for adaptive fetching process;
- change casting to from primitive types to Wrapper classes in AdaptiveFetchQueryMonitoringTest.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Change in AdaptiveFetchSizeTest:
- is using PreparedStatement during tests now;
- added assume to check if preferQueryMode is not Simple;
- new method to open connection and creating table to remove code repetitiveness.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Commit to add explanation about adaptive fetching process in AdaptiveFetchQueryMonitoring class.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Style changes in code of adaptive fetch:
- change usage of "BOOLEAN.true" to "true";
- change usage of "localAdaptiveFetch == true" to "localAdaptiveFetch";
- removed swallowing all exceptions in QueryExecutorImpl methods;
- renamed "AdaptiveFetchQueryMonitoring" class to "AdaptiveFetchCache";
- renamed "AdaptiveFetchQueryInfo" class to "AdaptiveFetchCacheEntry";
- change of variables names for consistent naming in AdaptiveFetchCache;
- change of variable names to show unit for variables containing maximum row size;
- new methods in AdaptiveFetchCacheEntry class for increment/decrement counter;
- change in comments to be consistent with existing comments.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Commit to add:
- missing methods for EncodingConnection in AbstractArraysTest.java;
- checking for NULL objects in adaptive fetch logic code in QueryExecutorImpl and PgResultSet;
- added NonNull annotation for Query parameters for methods in AdaptiveFetchCache.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Commit changed:
- swapped descriptions for ADAPTIVE_FETCH_MAXIMUM and ADAPTIVE_FETCH_MINIMUM in PGProperty enum;
- changed the comment for ADAPTIVE_FETCH property in PGProperty enum;
- removed the redundant comment for setAdaptiveFetch() method in PGConnection interface.

Commit made for Heimdall Data's request to implement adaptive fetching.

* feat: implementation of adaptive fetching

Commit changed:
- corrected the mistake in the comment for ADAPTIVE_FETCH property in PGProperty enum;
- brought back the comment for setAdaptiveFetch() method in PGConnection interface.

Commit made for Heimdall Data's request to implement adaptive fetching.

Co-authored-by: Adrian Kloskowski <adrian.kloskowski@heimdalldata.com>


  Commit: a992b3242a560771363020a51673dedfc848ac4c
      https://github.com/pgjdbc/pgjdbc/commit/a992b3242a560771363020a51673dedfc848ac4c
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M .github/workflows/main.yml

  Log Message:
  -----------
  Update apt before trying too install packages for gss test (#1963)


  Commit: 3d84eabeab59a32752d85353459c15a42cc9cc5b
      https://github.com/pgjdbc/pgjdbc/commit/3d84eabeab59a32752d85353459c15a42cc9cc5b
  Author: Dave Cramer <davecramer@gmail.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M .github/ISSUE_TEMPLATE/bug_report.md
    M .github/workflows/main.yml
    M .travis.yml
    M .travis/travis_build.sh
    M .travis/travis_deploy.sh
    M .travis/travis_release.sh
    M CONTRIBUTING.md
    M README.md
    M TESTING.md
    M benchmarks/src/jmh/java/org/postgresql/benchmark/statement/FinalizeStatement.java
    M build.gradle.kts
    M codecov.yml
    M docs/documentation/head/connect.md
    M gradle.properties
    R pgjdbc-jre6/build.gradle.kts
    R pgjdbc-jre6/gradle.properties
    R pgjdbc-jre7/build.gradle.kts
    R pgjdbc-jre7/gradle.properties
    M pgjdbc/src/main/java/org/postgresql/Driver.java
    M pgjdbc/src/main/java/org/postgresql/PGConnection.java
    M pgjdbc/src/main/java/org/postgresql/PGProperty.java
    M pgjdbc/src/main/java/org/postgresql/PGStatement.java
    M pgjdbc/src/main/java/org/postgresql/copy/PGCopyOutputStream.java
    M pgjdbc/src/main/java/org/postgresql/core/JavaVersion.java
    M pgjdbc/src/main/java/org/postgresql/core/PGStream.java
    M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
    M pgjdbc/src/main/java/org/postgresql/core/TypeInfo.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java
    A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchCache.java
    A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchCacheEntry.java
    M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/BatchResultHandler.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java
    M pgjdbc/src/main/java/org/postgresql/largeobject/LargeObject.java
    M pgjdbc/src/main/java/org/postgresql/replication/PGReplicationStream.java
    M pgjdbc/src/main/java/org/postgresql/ssl/LibPQFactory.java
    M pgjdbc/src/main/java/org/postgresql/util/GT.java
    A pgjdbc/src/test/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchCacheTest.java
    M pgjdbc/src/test/java/org/postgresql/jdbc/AbstractArraysTest.java
    A pgjdbc/src/test/java/org/postgresql/jdbc/BitFieldTest.java
    A pgjdbc/src/test/java/org/postgresql/jdbc/ConnectionValidTest.java
    M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/RefCursorTest.java
    A pgjdbc/src/test/java/org/postgresql/test/jdbc42/AdaptiveFetchSizeTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42CallableStatementTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java
    M pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java
    M settings.gradle.kts

  Log Message:
  -----------
  Merge branch 'master' into release/42.2


Compare: https://github.com/pgjdbc/pgjdbc/compare/013ba2730848...3d84eabeab59