mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
PostgreSQL: Display foreign tables (bug #576)
This commit is contained in:
@@ -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
|
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
|
FROM pg_class c
|
||||||
JOIN pg_namespace n ON(n.nspname = current_schema() AND n.oid = c.relnamespace)
|
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")
|
" . ($name != "" ? "AND relname = " . q($name) : "ORDER BY relname")
|
||||||
) as $row) { //! Index_length, Auto_increment
|
) as $row) { //! Index_length, Auto_increment
|
||||||
$return[$row["Name"]] = $row;
|
$return[$row["Name"]] = $row;
|
||||||
|
@@ -7,6 +7,7 @@ CSP: Allow any styles, images, media and fonts, disallow base-uri
|
|||||||
MySQL: Support geometry in MySQL 8 (bug #574)
|
MySQL: Support geometry in MySQL 8 (bug #574)
|
||||||
SQLite: Enable foreign key checks
|
SQLite: Enable foreign key checks
|
||||||
PostgreSQL: Respect NULL default value
|
PostgreSQL: Respect NULL default value
|
||||||
|
PostgreSQL: Display foreign tables (bug #576)
|
||||||
PostgreSQL: Do not export triggers if not requested
|
PostgreSQL: Do not export triggers if not requested
|
||||||
PostgreSQL: Export DROP SEQUENCE if dropping table
|
PostgreSQL: Export DROP SEQUENCE if dropping table
|
||||||
MS SQL: Support freetds
|
MS SQL: Support freetds
|
||||||
|
Reference in New Issue
Block a user