SHOW INDEX/ES stmts information about computed indexes is misleading #94690
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
O-community
Originated from the community
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Is your feature request related to a problem? Please describe.
Imagine the following schema:
With the following index:
If I use my IDE to get information about which JSON property I am indexing, I get this:
Just
crdb_internal_idx_expr
which is not very useful.Which is indeed the same information I get if I execute the following stmt:
SHOW INDEXES FROM foo
To get useful information about the index, I have to use:
Where I can see the useful piece of information I was looking for, but it seems a bit misleading having to use
SHOW CREATE TABLE
to gather information about an index. IMHOSHOW INDEXES
returning it would be awesome, and possibly the IDEs could benefit from this feature as well.Describe the solution you'd like
Return the json/computed column information in the
SHOW INDEXES
stmt:Describe alternatives you've considered
I can use
SHOW CREATE TABLE foo
for now, but it's not very intuitive.Additional context
Thank you Shaun (Cockroach Labs) from CockroachDB Community Slack for the useful tip!
Jira issue: CRDB-23086
Epic CRDB-23454
The text was updated successfully, but these errors were encountered: