You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
CREATESCHEMAapp_data AUTHORIZATION app_user;
ALTERSCHEMA app_data RENAME TO app_archive;
ALTERSCHEMA 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:
Create Schema…
Schema name
Optional owner/authorization role
Preview the generated CREATE SCHEMA statement before execution
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
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
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.
Activity