Skip to content

Commit

Permalink
Fix regression with partitioned tables in PostgreSQL
Browse files Browse the repository at this point in the history
Add handling for detecting existence of partitioned tables explicitly.

PostgreSQL JDBC Driver update from 42.2.10 to 42.2.25 in #113 caused
partitioned tables to broke due upstream change of separating types of
normal table and partitioned table as explained in
pgjdbc/pgjdbc#1708
  • Loading branch information
tvainika committed Mar 3, 2022
1 parent e5b2b14 commit af203e7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -501,7 +501,7 @@ public boolean tableExists(
tableId.catalogName(),
tableId.schemaName(),
tableId.tableName(),
new String[]{"TABLE"}
new String[]{"TABLE", "PARTITIONED TABLE"}
)) {
final boolean exists = rs.next();
log.info("Using {} dialect table {} {}", this, tableId, exists ? "present" : "absent");
Expand Down

0 comments on commit af203e7

Please sign in to comment.