[pgjdbc/pgjdbc] 6ce917: fix: allow disabling field metadata cache (#1052)

From: Marc Slemko <marcs(at)znep(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 6ce917: fix: allow disabling field metadata cache (#1052)
Date: 2018-05-09 19:57:19
Message-ID: 5af3529f13fbd_38482ab417375c085963@hookshot-fe-32b5f5b.cp1-iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 6ce91721048dea0e73231fa50c365108e9b9d49d
https://github.com/pgjdbc/pgjdbc/commit/6ce91721048dea0e73231fa50c365108e9b9d49d
Author: Marc Slemko <marcs(at)znep(dot)com>
Date: 2018-05-09 (Wed, 09 May 2018)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSetMetaData.java
A pgjdbc/src/main/java/org/postgresql/util/Gettable.java
A pgjdbc/src/main/java/org/postgresql/util/GettableHashMap.java
M pgjdbc/src/main/java/org/postgresql/util/LruCache.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java

Log Message:
-----------
fix: allow disabling field metadata cache (#1052)

Clients accessing very dynamic schemas can have issues with the
field metadata cache getting stale. This change allows configuring the
databaseMetadataCacheFields property to 0 to disable the cache and
avoid these issues where necessary. This behaviour was already
documented, however did not actually work as the codepath assumed
it could retrieve the fields from the cache.

**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

Functionality will be removed from GitHub.com on January 31st, 2019.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jorge Solorzano 2018-05-10 05:40:54 [pgjdbc/pgjdbc] 354d28: fix: error on Travis build head (#1186)
Previous Message Hari Babu Kommi 2018-05-04 12:03:04 [pgjdbc/pgjdbc] e88abd: spelling mistake correction (#1181)