Skip to content

feat: add \dS suffix for system objects (pg_catalog, information_schema)#160

Open
Pawansingh3889 wants to merge 2 commits intodbcli:mainfrom
Pawansingh3889:feat/add-system-object-suffix
Open

feat: add \dS suffix for system objects (pg_catalog, information_schema)#160
Pawansingh3889 wants to merge 2 commits intodbcli:mainfrom
Pawansingh3889:feat/add-system-object-suffix

Conversation

@Pawansingh3889
Copy link
Copy Markdown

Adds \dtS, \dvS, \dmS, \dsS, \diS, and \dS metacommands that include system objects from pg_catalog and information_schema, matching psql behavior.

Changes:

  • Added show_system parameter to list_objects() (default False, backward compatible)
  • When show_system=True, skips pg_catalog/information_schema exclusion (pg_toast still excluded)
  • Registered 7 new special commands: \dtS, \dvS, \dmS, \dsS, \diS, and \dS
  • Existing \dt, \dv, etc. behavior unchanged

Adds \dtS, \dvS, \dmS, \dsS, \diS, and \dS metacommands that include
system objects from pg_catalog and information_schema, matching psql
behavior. The existing \dt, \dv, etc. continue to exclude system objects.

Implements this by adding a show_system parameter to list_objects().
When True, the pg_catalog/information_schema exclusion filter is skipped
(pg_toast is still excluded).

Closes dbcli/pgcli#1523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant