提交 d1368729 编写于 作者: S Serge Rider

#712 PG materialized views indexes.

上级 d839fa90
......@@ -70,6 +70,12 @@
<items label="%tree.column.node.name" path="attribute" property="attributes" icon="#column">
</items>
</folder>
<folder type="org.jkiss.dbeaver.ext.postgresql.model.PostgreIndex" label="%tree.indexes.node.name" icon="#indexes" description="Table indexes">
<items label="%tree.index.node.name" path="index" property="indexes" icon="#index">
<items label="%tree.index_columns.node.name" path="column" property="attributeReferences" icon="#column" navigable="false" inline="true">
</items>
</items>
</folder>
</items>
</folder>
<folder type="org.jkiss.dbeaver.ext.postgresql.model.PostgreIndex" label="%tree.indexes.node.name" icon="#indexes" description="Indexes">
......
......@@ -22,7 +22,7 @@ import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.dbeaver.model.struct.rdb.DBSTableIndex;
import java.sql.ResultSet;
import java.util.List;
import java.util.Collection;
/**
* PostgreMaterializedView
......@@ -37,9 +37,9 @@ public class PostgreMaterializedView extends PostgreViewBase
}
@Override
public List<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException
public Collection<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException
{
return null;
return getSchema().indexCache.getObjects(monitor, getSchema(), this);
}
@Override
......
......@@ -153,6 +153,7 @@ public abstract class PostgreTableBase extends JDBCTable<PostgreDataSource, Post
{
getContainer().tableCache.clearChildrenCache(this);
getContainer().constraintCache.clearObjectCache(this);
getContainer().indexCache.clearObjectCache(this);
if (oid == 0) {
// New table - read OID
try (JDBCSession session = DBUtils.openMetaSession(monitor, getDataSource(), "Read procedure body")) {
......
......@@ -30,6 +30,7 @@ import org.jkiss.dbeaver.model.struct.rdb.DBSTableIndex;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;
/**
......@@ -66,7 +67,7 @@ public abstract class PostgreViewBase extends PostgreTableReal
}
@Override
public List<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException
public Collection<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException
{
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册