Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jA9jZ-0000nj-3w for pgsql-jdbc@arkaria.postgresql.org; Fri, 06 Mar 2020 09:57:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jA9jX-0004ya-Jn for pgsql-jdbc@arkaria.postgresql.org; Fri, 06 Mar 2020 09:57:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jA9jX-0004yT-90 for pgsql-jdbc@lists.postgresql.org; Fri, 06 Mar 2020 09:57:31 +0000 Received: from out-24.smtp.github.com ([192.30.252.207]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jA9jT-0001jX-Od for pgsql-jdbc@lists.postgresql.org; Fri, 06 Mar 2020 09:57:30 +0000 Received: from github-lowworker-2e54e43.va3-iad.github.net (github-lowworker-2e54e43.va3-iad.github.net [10.48.17.27]) by smtp.github.com (Postfix) with ESMTP id DAA016A0553 for ; Fri, 6 Mar 2020 01:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1583488645; bh=UUXA7ZrYkZVlfjVPr6Dc9G+4dkt03WpwX/V8LrCXXHM=; h=Date:From:To:Subject:From; b=sZbHQm0oNgXKqayo5f4d8POEppl+0lF8URzXbVLSRfwjvDH+009KEMe+/7H7MMjGB /hEa7/kRomNVSg9uyuFth9k6TtjVl36zV4bAgCZ5Uf7+AXrT0Spjp3VVzxdtxJiBbk wtA03dA5FGL/c8DqGAN6wYkDCO5NshA1zmezLOH8= Date: Fri, 06 Mar 2020 01:57:25 -0800 From: Nick Mancuso To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 94641e: fix: Always use . as decimal separator in PGInterv... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 94641ef08922d77ac021f70af91cafe85866d854 https://github.com/pgjdbc/pgjdbc/commit/94641ef08922d77ac021f70af91cafe85866d854 Author: Toddy69 <3174167+Toddy69@users.noreply.github.com> Date: 2020-02-13 (Thu, 13 Feb 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/util/PGInterval.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/IntervalTest.java Log Message: ----------- fix: Always use . as decimal separator in PGInterval. (#1705) Commit: 9a3e0f0ce92cc0a7addb369127b7790c5199cea3 https://github.com/pgjdbc/pgjdbc/commit/9a3e0f0ce92cc0a7addb369127b7790c5199cea3 Author: Dave Cramer Date: 2020-02-23 (Sun, 23 Feb 2020) Changed paths: M CHANGELOG.md M docs/documentation/head/connect.md M pgjdbc/src/main/java/org/postgresql/PGProperty.java M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java M pgjdbc/src/main/java/org/postgresql/hostchooser/HostRequirement.java M pgjdbc/src/main/java/org/postgresql/hostchooser/HostStatus.java M pgjdbc/src/test/java/org/postgresql/test/hostchooser/MultiHostsConnectionTest.java Log Message: ----------- remove the user of the word master internally (#1713) * deprecate the use of the word master remove the use of the word master internally * remove more uses of the word master Document use of the word primary and secondary * Use PGProperty to set values, avoid hardcoding names Commit: 630692d6823d9ca65059c59ab01d184b33d8ea9c https://github.com/pgjdbc/pgjdbc/commit/630692d6823d9ca65059c59ab01d184b33d8ea9c Author: Markus Winand Date: 2020-02-24 (Mon, 24 Feb 2020) Changed paths: M docs/documentation/head/ext.md Log Message: ----------- Typo in documentation (case instead of cast) (#1715) Commit: 5bb5f409b8372e4be86c14a00309ab60b8e17ed8 https://github.com/pgjdbc/pgjdbc/commit/5bb5f409b8372e4be86c14a00309ab60b8e17ed8 Author: adrklos Date: 2020-02-24 (Mon, 24 Feb 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/AdaptiveFetchQueryInfo.java A pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoring.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/AdaptiveFetchQueryMonitoringTest.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: implementation of adaptive fetching (#1707) * 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 separate 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 to add: - unit tests for AdaptiveFetchQueryMonitoring class; - some style fixes (removing extra spaces, simpler code in setMaxRowSize method in PGStream class). Commit to add: - integration tests for adaptive fetching process; - change casting to from primitive types to Wrapper classes in AdaptiveFetchQueryMonitoringTest. 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 to add explanation about adaptive fetching process in AdaptiveFetchQueryMonitoring class. Commit: 13a644b4945996dff5274e45741313380d4a47e6 https://github.com/pgjdbc/pgjdbc/commit/13a644b4945996dff5274e45741313380d4a47e6 Author: Dave Cramer Date: 2020-02-24 (Mon, 24 Feb 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 R pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryInfo.java R pgjdbc/src/main/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoring.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 R pgjdbc/src/test/java/org/postgresql/core/v3/adaptivefetch/AdaptiveFetchQueryMonitoringTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java R pgjdbc/src/test/java/org/postgresql/test/jdbc42/AdaptiveFetchSizeTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java Log Message: ----------- Revert "feat: implementation of adaptive fetching (#1707)" (#1717) This reverts commit 5bb5f409b8372e4be86c14a00309ab60b8e17ed8. Commit: 25eb32c8681eaa4aaac801808b6028e9f5dfbea8 https://github.com/pgjdbc/pgjdbc/commit/25eb32c8681eaa4aaac801808b6028e9f5dfbea8 Author: Mike Goodman Date: 2020-02-25 (Tue, 25 Feb 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: ----------- feat: add way to distinguish base and partitioned tables in PgDatabaseMetaData.getTables (#1708) * feat: add way to distinguish base and partitioned tables in PgDatabaseMetaData.getTables There is currently no way to distinguish between base tables and partitioned tables in the response from PgDatabadeMetaData.getTables. Fix this by adding PARTITIONED TABLE to the tableTypeClauses map and thus the TABLE_TYPE field in the query in getTables. Also update a test (testPartitionedTables) that was using TABLE_TYPE of TABLE to grab partitioned tables. This should close #1590. However, perhaps this could be considered a breaking change for anyone using getTables and expecting partitioned tables to show up for .getTables(s, s1, s2, new String[]{"TABLE"})? * test: improve database metadata table type test Commit: 30843e45edc1e2bac499df2d1576c2db4d3d3309 https://github.com/pgjdbc/pgjdbc/commit/30843e45edc1e2bac499df2d1576c2db4d3d3309 Author: crwr45 <34647635+crwr45@users.noreply.github.com> Date: 2020-02-25 (Tue, 25 Feb 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java A pgjdbc/src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java Log Message: ----------- fix: allow DatabaseMetaData.getColumns to describe an unset scale (#1716) getColumns returns a 0 for the scale of a Decimal or Numeric column when the scale is 0, and when the scale is null. The caller can then not differentiate between a 0 or a null without another query. This change replaces the 0 in the ResultSet for scale with a null when describing an unscaled Decimal or Numeric column. getInt will still convert the null to a 0, but the caller can then use wasNull() to find out if the underlying value was 0 or null. This addresses Issue 1712. It is a breaking change, but if the correct getter (getInt) is used for the column, there is no difference. Other getters may behave differently. Signed-off-by: crwr45 Commit: f554118a95cda1470fc7ac8b67b8ae7c18b25826 https://github.com/pgjdbc/pgjdbc/commit/f554118a95cda1470fc7ac8b67b8ae7c18b25826 Author: Mike Goodman Date: 2020-02-26 (Wed, 26 Feb 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ArrayTest.java Log Message: ----------- fix: add support for full names of data types (#1719) * fix: add support for full names of data types Currently the driver only recognizes alias names (e.g. "varchar", "float8", "timetz") and not full names (e.g. "character varying", "double precision", "time with time zone"); add support for the full names of data types. Closes #1563 * fix: add timestamp with timezone to full data type name array test Commit: 0faf9ce23a6c5f323545e374f0781b9c1d3cedcd https://github.com/pgjdbc/pgjdbc/commit/0faf9ce23a6c5f323545e374f0781b9c1d3cedcd Author: Dave Cramer Date: 2020-02-26 (Wed, 26 Feb 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/copy/CopyManager.java Log Message: ----------- document copy out not closing output stream (#1721) * document copyout not closing output stream Commit: 5fbe04626c64b7c46a22a0cea108921305b14074 https://github.com/pgjdbc/pgjdbc/commit/5fbe04626c64b7c46a22a0cea108921305b14074 Author: Mike Goodman Date: 2020-02-27 (Thu, 27 Feb 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataHideUnprivilegedObjectsTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java Log Message: ----------- fix: getProcedures returns only procedures (not functions) for psql11+ (#1723) * fix: getProcedures returns only procedures (not functions) for psql11+ Currently the PGDatabaseMetaData.getProcedures() method returns both procedures and functions. This made sense prior to PostgreSQL11, but now actual procedures can be created instead of just functions, and pgjdbc has an added getFunctions() method to distinguish between the two. For only PostgreSQL version 11 and onward, this will make getFunctions() return only functions and getProcedures() return only procedures. I believe this closes #1340 and #1629, which both seem to essentially be the same thing? * only create procedure in tests for psql versions 11 and higher * testGetProcedures now checks for functions or procedures depending on psql version * only test 'create procedure' for psql 11+ Commit: 7da60074916c063c18d6c91e92e5cb360de69cd3 https://github.com/pgjdbc/pgjdbc/commit/7da60074916c063c18d6c91e92e5cb360de69cd3 Author: Nick Mancuso <31252532+nmancus1@users.noreply.github.com> Date: 2020-03-04 (Wed, 04 Mar 2020) Changed paths: M pgjdbc/pom.xml Log Message: ----------- perf: upgrade maven-checkstyle-plugin to 3.1.1 (#1726) upgrade maven-checkstyle-plugin to newest version Compare: https://github.com/pgjdbc/pgjdbc/compare/202f88e13c11...7da60074916c