]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Display foreign tables (bug #576)
authorJakub Vrana <jakub@vrana.cz>
Tue, 23 Jan 2018 14:03:53 +0000 (15:03 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 23 Jan 2018 14:03:53 +0000 (15:03 +0100)
adminer/drivers/pgsql.inc.php
changes.txt

index 36f1788b0d128ec18ef5b7906442a1337614963a..620a3446122820e75c01fdfd4d1a6c2c080b08a5 100644 (file)
@@ -255,7 +255,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\", c.relhasoids::int 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')
+WHERE relkind IN ('r', 'm', 'v', 'f')
 " . ($name != "" ? "AND relname = " . q($name) : "ORDER BY relname")
                ) as $row) { //! Index_length, Auto_increment
                        $return[$row["Name"]] = $row;
index a567972b2605f3c05a6d284d840c378f5cee57b2..277dc1198078da963fa2774a5cfd4563aa435606 100644 (file)
@@ -7,6 +7,7 @@ CSP: Allow any styles, images, media and fonts, disallow base-uri
 MySQL: Support geometry in MySQL 8 (bug #574)
 SQLite: Enable foreign key checks
 PostgreSQL: Respect NULL default value
+PostgreSQL: Display foreign tables (bug #576)
 PostgreSQL: Do not export triggers if not requested
 PostgreSQL: Export DROP SEQUENCE if dropping table
 MS SQL: Support freetds