From: Mike Goodman <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] 25eb32: feat: add way to distinguish base and partitioned ...
Date: Tue, 25 Feb 2020 07:14:41 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/13a644-25eb32@github.com> (raw)
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 25eb32c8681eaa4aaac801808b6028e9f5dfbea8
https://github.com/pgjdbc/pgjdbc/commit/25eb32c8681eaa4aaac801808b6028e9f5dfbea8
Author: Mike Goodman <MSGoodman@users.noreply.github.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: noreply@github.com
Subject: Re: [pgjdbc/pgjdbc] 25eb32: feat: add way to distinguish base and partitioned ...
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/13a644-25eb32@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/13a644-25eb32@github.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox