Skip to content

Include views and indexes in the SQL export #2492

Closed

Description

@datlechin

Problem

An SQL export writes tables and their data. Views, indexes, sequences and triggers are left out, so restoring the file produces a database with the tables and nothing else.

Proposed solution

  • Per-object-kind checkboxes in the export dialog: tables, views, indexes, sequences, triggers, routines.
  • Write in dependency order: tables, then data, then indexes and constraints, then views, then routines and triggers.
  • Fold this into the existing per-table Structure, Drop and Data checkboxes rather than adding a second control surface beside them.

Alternatives considered

Dump the schema separately with the engine's own tool and concatenate.

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