Skip to content

Show indexes on materialized views in the structure tab #2522

Closed

Description

@datlechin

Problem

A materialized view opens in the structure tab with its columns but no indexes, even though a materialized view can be indexed and usually is. Its unique index is also what makes REFRESH MATERIALIZED VIEW CONCURRENTLY possible, so its absence hides the one thing worth knowing about the object.

Proposed solution

  • List indexes on a materialized view the way they are listed on a table.
  • Allow creating and dropping them, since that is a normal CREATE INDEX.
  • Show whether a unique index exists, and note that concurrent refresh depends on it.

Alternatives considered

Query pg_indexes by hand.

Related database type

PostgreSQL

Activity

  1. added
    enhancement
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions