]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Support exporting views
authorJakub Vrana <jakub@vrana.cz>
Thu, 30 Jan 2020 16:13:50 +0000 (17:13 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 30 Jan 2020 16:13:50 +0000 (17:13 +0100)
adminer/drivers/pgsql.inc.php
changes.txt

index da4af92547d1e83a142a7a2e05ad7a70ded50967..76c40d3d518acb41a8aa294a8d154b730884765f 100644 (file)
@@ -711,6 +711,10 @@ AND typelem = 0"
                $sequences = array();
 
                $status = table_status($table);
+               if (is_view($status)) {
+                       $view = view($table);
+                       return rtrim("CREATE VIEW " . idf_escape($table) . " AS $view[select]", ";");
+               }
                $fields = fields($table);
                $indexes = indexes($table);
                ksort($indexes);
index 2c80c913847ee224d5a96d03944ca7d81c680309..6be97c5e92363d29c845874ae8e046418ace28f8 100644 (file)
@@ -4,6 +4,7 @@ Fix clicking on non-input fields in alter table (regression from 4.6.2)
 Display time of procedure execution
 Disallow connecting to ports > 65535 (bug #730)
 MySQL: Always set foreign_key_checks in export
+PostgreSQL: Support exporting views
 Editor: Fix focusing foreign key search in select
 
 Adminer 4.7.5 (released 2019-11-13):