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

PostgreSQL: Support indexes on materialized views (PR #467)

This commit is contained in:
Jakub Vrana
2025-03-07 13:13:53 +01:00
parent 22a544f71c
commit 28c171f681
4 changed files with 21 additions and 8 deletions

View File

@@ -230,6 +230,14 @@ abstract class SqlDriver {
return false;
}
/** Check whether table supports indexes
* @param array result of table_status()
* @return bool
*/
function supportsIndex($table_status) {
return !is_view($table_status);
}
/** Get defined check constraints
* @param string
* @return array [$name => $clause]