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]
$adminer->tableStructurePrint($fields);
}
-if (!is_view($table_status)) {
- if (support("indexes")) {
- echo "<h3 id='indexes'>" . lang('Indexes') . "</h3>\n";
- $indexes = indexes($TABLE);
- if ($indexes) {
- $adminer->tableIndexesPrint($indexes);
- }
- echo '<p class="links"><a href="' . h(ME) . 'indexes=' . urlencode($TABLE) . '">' . lang('Alter indexes') . "</a>\n";
+if (support("indexes") && $driver->supportsIndex($table_status)) {
+ echo "<h3 id='indexes'>" . lang('Indexes') . "</h3>\n";
+ $indexes = indexes($TABLE);
+ if ($indexes) {
+ $adminer->tableIndexesPrint($indexes);
}
+ echo '<p class="links"><a href="' . h(ME) . 'indexes=' . urlencode($TABLE) . '">' . lang('Alter indexes') . "</a>\n";
+}
+if (!is_view($table_status)) {
if (fk_support($table_status)) {
echo "<h3 id='foreign-keys'>" . lang('Foreign keys') . "</h3>\n";
$foreign_keys = foreign_keys($TABLE);
Fix bulk operations with tables
Remove duplicate columns from select (bug #670)
MariaDB: Fix link to status variable doc (bug #658)
+PostgreSQL: Support indexes on materialized views (PR #467)
Adminer 5.0.0 (released 2025-03-07):
Speed up with disabled output buffering