Skip to content

Commit

Permalink
Merge #124007
Browse files Browse the repository at this point in the history
124007: clisqlshell: fix `\d` metacommand to exclude indexes by default. r=rafiss a=miyamo2

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

Co-authored-by: miyamo2 <79917704+miyamo2@users.noreply.github.com>
  • Loading branch information
craig[bot] and miyamo2 committed May 13, 2024
2 parents f51ccd1 + 664124b commit 7d78545
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 7d78545

Please sign in to comment.