Skip to content

Feature request: PostgreSQL schema management — create, rename, change owner and permissions #2908

Closed

Description

@JX-WANG117

Problem

TablePro can list and switch PostgreSQL schemas through the schema selector and Database → Schema, but there is no discoverable UI for creating or editing a schema.

Common schema-management tasks therefore require opening a SQL editor and manually running statements such as:

CREATE SCHEMA app_data AUTHORIZATION app_user;
ALTER SCHEMA app_data RENAME TO app_archive;
ALTER SCHEMA app_archive OWNER TO another_role;
GRANT USAGE, CREATE ON SCHEMA app_archive TO app_user;

This is inconsistent with the visual management already available for databases, tables, views, users, and roles. It is also easy to make mistakes with identifier quoting, the selected database, ownership, or privileges.

Proposed solution

Add PostgreSQL schema-management actions to the schema selector and the relevant sidebar/database-tree context menus:

  1. Create Schema…

    • Schema name
    • Optional owner/authorization role
    • Preview the generated CREATE SCHEMA statement before execution
  2. Edit Schema…

    • Rename the schema
    • Change its owner
    • View and edit schema privileges such as USAGE and CREATE
    • Preview the generated ALTER SCHEMA / GRANT / REVOKE statements
  3. Refresh and navigation

    • Refresh the schema picker, sidebar, database tree, autocomplete metadata, and all windows after a successful change
    • Keep the renamed or newly created schema selected when possible
  4. Safety

    • Show the fully qualified target and active database before applying changes
    • Disable rename/edit operations for PostgreSQL system schemas where appropriate
    • Quote identifiers through the PostgreSQL driver
    • Respect the connection's Safe Mode and read-only settings
    • Show clear permission errors when the current role does not own the schema or lacks database CREATE privileges

The actions should be available consistently in flat, hierarchical-schema, and database-tree layouts. If rename support already exists in one layout, exposing the same capability from the schema selector would make it much easier to discover.

Alternatives considered

Continue managing schemas through handwritten SQL. This works, but it is slower and less discoverable, and users must manually refresh the schema list afterward.

Issue #2819 covers catalog refresh after schema-changing DDL. This request is specifically for user-facing schema creation and editing controls; the refresh behavior proposed there would complement these actions.

Related database type

PostgreSQL

TablePro version

0.74.0 (build 130)

macOS version & chip

macOS 27.0 / Apple Silicon

Activity

  1. self-assigned this
    on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions