sql,cli: \d
metacommand should not show indexes by default
#123946
Labels
A-cli-client
CLI commands that pertain to using SQL features
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
E-easy
Easy issue to tackle, requires little or no CockroachDB experience
E-starter
Might be suitable for a starter project for new employees or team members.
good first issue
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
Describe the problem
In
psql
, the\d
metacommand does not show indexes, but incockroach sql
, it does.From the psql documentation:
cockroach sql
appears to treat it as\dtivmsE
instead.To Reproduce
Setup with:
With PSQL
With Cockroach SQL
Expected behavior
Only
tbl
should appear in the results. (Postgres also shows some tables frompg_extension
, but let's ignore those for now.)Additional data / screenshots
I captured the queries that were running.
In psql:
In cockroach sql:
Additional context
See slack thread: https://cockroachlabs.slack.com/archives/C0168LW5THS/p1715331247139219
Jira issue: CRDB-38618
The text was updated successfully, but these errors were encountered: