Skip to content

Commit

Permalink
sql: increase the online help for SHOW RANGES
Browse files Browse the repository at this point in the history
The output of `\h SHOW RANGES` wasn't mentioning the KEYS option. Now
it does. Also this adds some additional details about the various
options.

Release note: None
  • Loading branch information
knz committed Jan 21, 2023
1 parent 47d6f18 commit 1040ff4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/sql/parser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -7918,10 +7918,11 @@ show_range_for_row_stmt:
// SHOW RANGES FROM INDEX [ <tablename> @ ] <indexname> [ WITH <options...> ]
//
// Options:
// INDEXES
// TABLES
// DETAILS
// EXPLAIN
// INDEXES: list indexes contained per range
// TABLES: list tables contained per range
// DETAILS: add range size, leaseholder and other details
// KEYS: include binary start/end keys
// EXPLAIN: show the SQL queries that produces the result
show_ranges_stmt:
SHOW RANGES FROM INDEX table_index_name opt_show_ranges_options
{
Expand Down

0 comments on commit 1040ff4

Please sign in to comment.