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 1j6bv6-0001rE-Nz for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Feb 2020 15:14:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6bv5-0005RJ-Hr for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Feb 2020 15:14:47 +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 1j6bv5-0005RC-8V for pgsql-jdbc@lists.postgresql.org; Tue, 25 Feb 2020 15:14:47 +0000 Received: from out-23.smtp.github.com ([192.30.252.206]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6bv2-0005cF-1q for pgsql-jdbc@lists.postgresql.org; Tue, 25 Feb 2020 15:14:46 +0000 Date: Tue, 25 Feb 2020 07:14:41 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1582643681; bh=onfF5Zg1Busif0oHgS8eYfNcgEx2rD608emcTG2PCcA=; h=Date:From:To:Subject:From; b=G/MW5zOkcWri+w8quVimIMPMJM7+GcJ+n6B+kUS3TtpBYQcOhaUlEwpA1sBXMuxmB 531Q7cvrFm2+jIsMUQUpbjEMdJusx9MtV3cOilorlAQpFH+jA538U/bKQkeqUT4fpm 398fJV14/emXDRqF9LM3yHi7VB08Eyy27ROnm8Go= From: Mike Goodman To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 25eb32: feat: add way to distinguish base and partitioned ... 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: 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