Skip to content

PostgreSQL user-defined types in the structure editor and sidebar #2484

Description

@datlechin

Problem

Enums, composite types and domains are invisible. A column using one shows the type name and nothing else: there is no way to see its definition, list the types in a schema, or create one without writing DDL.

Proposed solution

  • A Types section under each schema beside Functions and Triggers, listing enums, composites, domains and ranges.
  • Open a type to see its definition, and edit an enum's labels.
  • Offer user-defined types in the column type picker in the structure editor.
  • The same treatment on other engines with comparable types where it costs little.

Alternatives considered

Query pg_type by hand.

Related database type

PostgreSQL

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions