1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

PostgreSQL: Support exporting views

This commit is contained in:
Jakub Vrana
2020-01-30 17:13:50 +01:00
parent 0293613c21
commit ad16cb8581
2 changed files with 5 additions and 0 deletions

View 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);