Skip to content

Commit

Permalink
clisqlshell: fix \d metacommand to exclude indexes by default.
Browse files Browse the repository at this point in the history
This commit makes the `\d` metacommand in the `cockroach sql` excludes indexes by default to align with `psql` behavior. This ensures that only tables, views, materialized views, sequences, foreign tables and partitioned table are showed by default.

Fixes #123946

Release note: None
  • Loading branch information
miyamo2 committed May 12, 2024
1 parent 4c2e776 commit 664124b
Show file tree
Hide file tree
Showing 2 changed files with 298 additions and 351 deletions.
1 change: 0 additions & 1 deletion pkg/cli/clisqlshell/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ func listTables(tabTypes string, hasPattern bool, verbose, showSystem bool) (str

if !(showTables || showIndexes || showViews || showMatViews || showSeq || showForeign) {
showTables = true
showIndexes = true
showViews = true
showMatViews = true
showSeq = true
Expand Down

0 comments on commit 664124b

Please sign in to comment.