]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Show partitioned tables as tables, not views (bug #1031)
authorJakub Vrana <jakub@vrana.cz>
Sun, 13 Apr 2025 10:48:40 +0000 (12:48 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 13 Apr 2025 12:05:54 +0000 (14:05 +0200)
CHANGELOG.md
adminer/drivers/pgsql.inc.php

index 53da30c639eac696ea70bab3b28aeb4e2145e3a1..0d36f5f90828189892934178f4affeb55ad241a3 100644 (file)
@@ -1,4 +1,5 @@
 ## Adminer dev
+- PostgreSQL: Show partitioned tables as tables, not views
 - Designs: adminer.css with 'prefers-color-scheme: dark' don't disable dark mode
 - Plugins: Method bodyClass() to add &lt;body class>
 
index 003622f665e9b80eeb4a9895dc250b0c2ec3e1be..0fd1073bba6ff29e4d18d679c0e54b576cbdfd2b 100644 (file)
@@ -407,7 +407,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\"" . ($has_size ? ",
+       CASE c.relkind WHEN 'v' THEN 'view' WHEN 'm' THEN 'materialized view' ELSE 'table' END AS \"Engine\"" . ($has_size ? ",
        pg_table_size(c.oid) AS \"Data_length\",
        pg_indexes_size(c.oid) AS \"Index_length\"" : "") . ",
        obj_description(c.oid, 'pg_class') AS \"Comment\",