Mentions légales du service

Skip to content

fix(deps): update dependency org.postgresql:postgresql to v42.3.6

Renovate Tac requested to merge renovate/org.postgresql-postgresql-42.x into develop

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
org.postgresql:postgresql (source) 42.2.24 -> 42.3.6 age adoption passing confidence

Release Notes

pgjdbc/pgjdbc

v42.3.6

Changed
Added
Fixed
  • fix: close refcursors when underlying cursor==null instead of relying on defaultRowFetchSize MR #​2377

v42.3.5

Changed
  • test: polish TimestampUtilsTest
  • chore: use GitHub Action concurrency feature to terminate CI jobs on fast MR pushes
Added
  • Added KEYS file to allow for verifying artifacts MR 2499
Fixed
  • perf: enable tcpNoDelay by default MR 2495. This is a regression from 42.2.x versions where tcpNoDelay defaulted to true
  • docs: fix readme.md after MR 2495 MR 2496
  • feat: targetServerType=preferPrimary connection parameter MR 2483
  • fix: revert removal of toOffsetDateTime(String timestamp) fixes Issue #​2497 MR 2501

v42.3.4

Changed
  • fix: change name of build cache MR 2471
  • feat: add support for ResultSet#getObject(OffsetTime.class) and PreparedStatement#setObject(OffsetTime.class) MR 2467
  • fix: Use non-synchronized getTimeZone in TimestampUtils MR 2451
  • docs: Fix CHANGELOG.md misformatted markdown headings MR 2461
  • docs: remove loggerLevel and loggerFile from docs and issues MR 2489
  • feat: use direct wire format -> LocalDate conversion without resorting to java.util.Date, java.util.Calendar, and default timezones MR 2464 fixes Issue #​2221
Added
Fixed
  • docs: Update testing documentation MR 2446
  • fix: Throw an exception if the driver cannot parse the URL instead of returning NULL fixes Issue #​2421 MR 2441
  • fix: Use PGProperty instead of the property names directly MR 2444
  • docs: update changelog, missing links at bottom and formatting MR 2460
  • fix: Remove isDeprecated from PGProperty. It was originally intended to help produce automated docs. Fixes Issue #​2479 MR 2480
  • fix: change PGInterval parseISO8601Format to support fractional second MR 2457
  • fix: GSS login to use TGT from keytab fixes Issue #​2469 MR 2470
  • fix: More test and fix for issues discovered by MR #​2476 MR #​2488

v42.3.3

Changed
  • fix: Removed loggerFile and loggerLevel configuration. While the properties still exist. They can no longer be used to configure the driver logging. Instead use java.util.logging configuration mechanisms such as logging.properties.
Added
Fixed

v42.3.2

Security
  • CVE-2022-21724 pgjdbc instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback connection properties. However, the driver did not verify if the class implements the expected interface before instantiating the class. This would allow a malicious class to be instantiated that could execute arbitrary code from the JVM. Fixed in commit
Changed
  • perf: read in_hot_standby GUC on connection MR #​2334
  • test: materialized view privileges MR #​2209 fixes Issue #​2060
  • docs: add info about convenience maven project MR #​2407
  • docs: Document timezone reversal from POSIX to ISO MR #​2413
  • fix: we will ask the server if it supports GSS Encryption if gssEncryption is prefer or require MR #​2396 remove the need to have a ticket in the cache before asking the server if gss encryptions are supported
  • docs: remove Java 6 and 7 references from contributing MR #​2385
  • style: remove Java 8 / JDBC 4.2 checks MR #​2383 Remove all remaining checks whether the source is lower than Java 8 or JDBC 4.2.
  • fix: throw SQLException for #getBoolean BIT(>1) MR #​2386 Throw SQLException instead of ClassCastException when calling CallableStatement#getBoolean(int) on BIT(>1).
  • style: import java.time types in more classes MR #​2382 Use imports for java.time types in all remaining classes.
  • style: import java.time types in TimestampUtils MR #​2380 Use imports for java.time types in TimestampUtils.
  • refactor: Change internal constructors to pass only connection Properties Changes internal constructors for PgConnection and related classes to only accept the connection properties object and remove the user and password arguments. Any locations that required those fields can retrieve them from the properties map.
  • test: Fix DatabaseMetadataTest to perform mview tests only on 9.3+
  • perf: read in_hot_standby GUC on connection MR #​2334
  • doc: improv doc around binary decoding of numeric data #​2331
  • Add cert key type checking to chooseClientAlias MR #​2417
Added
  • feat: Add authenticationPluginClassName option to provide passwords at runtime Adds authenticationPluginClassName connection property that allows end users to specify a class that will provide the connection passwords at runtime. Users implementing that interface must ensure that each invocation of the method provides a new char[] array as the contents will be filled with zeroes by the driver after use.Call sites within the driver have been updated to use the char[] directly wherever possible. This includes direct usage in the GSS authentication code paths that internally were already converting the String password into a char[] for internal usage. This allows configuring a connection with a password that must be generated on the fly or periodically changes. MR #​2369 original issue Issue #​2102
  • feat: add tcpNoDelay option MR #​2341 fixes Issue #​2324
  • feat: pg_service.conf and .pgpass support (jdbc:postgresql://?service=my-service) MR #​2260 fixes Issue #​2278
Fixed
  • Use local TimestampUtil in PgStatement and PgResultset for thread safety MR #​2291 fixes Issue #​921 synchronize modification of shared calendar
  • fix: PgObject isNull() was reporting the opposite fixes Issue #​2411 MR #​2414
  • fix: default file name is ".pg_service.conf" on Windows (not "pg_service.conf") MR #​2398 fixes Issue #​2278
  • test: Fix RefCursorFetchTest on older platforms
  • fix: do not close refcursor after reading if fetchsize has been set fixes Issue #​2227 MR #​2371
  • fix: rework gss authentication to use the principal name to get the credentials fixes Issue #​2235 MR #​2352
  • fix: return getIndexInfo metadata columns in UPPER CASE MR #​2368
  • fix: Connection leak in ConnectionFactoryImpl#tryConnect MR #​2350 Issue #​2351
  • fix: Fix For IS_AUTOGENERATED Flag MR #​2348
  • fix: parsing service file tests for windows MR #​2347
  • fix: The spec says that calling close() on a closed connection is a noop. MR #​2345 fixes Issue #​2300
  • fix: add microsecond precision to getTimestamp() called on sql TIME(6) Currently, "when fetching a value of type TIME(6) through resultSet.getTimestamp() only ms precision is retained, the microsecond fractional digits are lost." This change will retain the microsecond precision when .getTimestamp() is called on TIME(6). MR #​2181 Closes Issue #​1537
  • test: materialized view privileges MR #​2209 add and drop a materialized view Add to TestUtil and also to DatabaseMetaData setup and teardown fixes Issue #​2060
  • fix: typo in connect.md MR #​2338 OutOfMemoryException => OutOfMemoryError
  • fix: use local TimestampUtil in PgStatement and PgResultset for thread safety TimestampUtil is not thread safe. It raises exceptions when multiple threads use ResultSets of one connection. MR #​2291 fixes Issue #​921 If PgStatement and PgResultSet use their own TimestampUtil no synchronize is needed.
  • fix: typo in CONTRIBUTING.md MR #​2332 seccion => section

v42.3.1

Changed
  • improv: Arrays in Object[] MR 2330 when an Object[] contains other arrays, treat as though it were a multi-dimensional array the one exception is byte[], which is not supported.
  • improv: Use jre utf-8 decoding MR 2317 Remove use of custom utf-8 decoding.
  • perf: improve performance of bytea string decoding MR 2320 improve the parsing of bytea hex encoded string by making a lookup table for each of the valid ascii code points to the 4 bit numeric value
  • feat: intern/canonicalize common strings MR 2234
Added
Fixed
  • numeric binary decode for even 10 thousands MR #​2327 fixes Issue 2326 binary numeric values which represented integers multiples of 10,000 from 10,000-9,990,000 were not decoded correctly
  • [typo] typo in certdir/README.md MR #​2309 certificatess => certificates
  • [typo] typo in TimestampUtils.java MR #​2314 Change Greagorian to Gregorian.
  • remove check for negative pid in cancel request. Apparently pgbouncer can send one fixes Issue 2317 MR #​2319

v42.3.0

Changed
  • No longer build for Java 6 or Java 7
  • If assumeMinServerVersion is not defined and server is at least 9.0, group startup statements into a single transaction MR #​1977
Added
  • Support for pg_service.conf file and jdbc URL syntax: "jdbc:postgresql://?service=service1". Resource can be provided using 1) property "-Dorg.postgresql.pgservicefile=file1" 2) environment variable PGSERVICEFILE=file2 3) default location "$HOME/.pg_service.conf" 4) environment variable PGSYSCONFDIR=dir1 looks for file "dir1/pg_service.conf".
  • Support for .pgpass file. Resource can be provided using 1) property "-Dorg.postgresql.pgpassfile=file1" 2) environment variable PGPASSFILE=file2 3) default location "$HOME/.pgpass"
Fixed
  • Rework OSGi bundle activator so it does not rely on exception message to check DataSourceFactory presence MR #​507
  • Fix database metadata getFunctions() and getProcedures() to ignore search_path when no schema pattern is specified MR #​2174
  • Fix refreshRow made the row readOnly. [MR #​2195](https://github.com/pgjdbc/pgjdbc/pull/2195 Fixes Issue #​2193
  • Fix do not add double quotes to identifiers already double quoted MR #​2224 Fixes Issue #​2223 Add a property QUOTE_RETURNING_IDENTIFIERS which determines if we put double quotes around identifiers that are provided in the returning array.
  • Fix Provide useful error message for empty or missing passwords for SCRAM auth MR #​2290 fixes Issue #​2288

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Edited by Renovate Tac

Merge request reports