]> git.joonet.de Git - adminer.git/commitdiff
Postgres - fix missing partitioned tables in navigation
authorJosef Drabek <jsf@drbk.cz>
Tue, 11 Aug 2020 22:27:34 +0000 (00:27 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 7 Feb 2021 10:21:50 +0000 (11:21 +0100)
adminer/drivers/pgsql.inc.php
changes.txt

index f3c880b230bb86dfb444ec8bc645e54a140ab149..b5a47ac9b6c2b7c4ed337be58a744d2a20e481e7 100644 (file)
@@ -326,7 +326,7 @@ ORDER BY 1";
                foreach (get_rows("SELECT c.relname AS \"Name\", CASE c.relkind WHEN 'r' THEN 'table' WHEN 'm' THEN 'materialized view' ELSE 'view' END AS \"Engine\", pg_relation_size(c.oid) AS \"Data_length\", pg_total_relation_size(c.oid) - pg_relation_size(c.oid) AS \"Index_length\", obj_description(c.oid, 'pg_class') AS \"Comment\", " . (min_version(12) ? "''" : "CASE WHEN c.relhasoids THEN 'oid' ELSE '' END") . " AS \"Oid\", c.reltuples as \"Rows\", n.nspname
 FROM pg_class c
 JOIN pg_namespace n ON(n.nspname = current_schema() AND n.oid = c.relnamespace)
-WHERE relkind IN ('r', 'm', 'v', 'f')
+WHERE relkind IN ('r', 'm', 'v', 'f', 'p')
 " . ($name != "" ? "AND relname = " . q($name) : "ORDER BY relname")
                ) as $row) { //! Index_length, Auto_increment
                        $return[$row["Name"]] = $row;
index 7d672eff3fa2f7ba1cd66eac90f789eac763f56c..e7cd82d39ffe1c22e2595bc64ef22fe6d6528d48 100644 (file)
@@ -13,6 +13,7 @@ PostgreSQL: Do not show view definition from other schema (PR #392)
 PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3.0.0)
 PostgreSQL PDO: Support PgBouncer, unsupport PostgreSQL < 9.1 (bug #771)
 PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
+PostgreSQL 10: Support partitioned tables (PR #396)
 PostgreSQL 11: Create PRIMARY KEY for auto increment columns
 SQLite: Set busy_timeout to 500
 MS SQL: Don't truncate comments to 30 chars (PR #376)