From 1040ff4b8adf9da913f212d00a50bea8989569fe Mon Sep 17 00:00:00 2001 From: Raphael 'kena' Poss Date: Sat, 21 Jan 2023 01:04:41 +0100 Subject: [PATCH] sql: increase the online help for SHOW RANGES 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 --- pkg/sql/parser/sql.y | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/sql/parser/sql.y b/pkg/sql/parser/sql.y index 334c9d79f92c..bd77fd4be022 100644 --- a/pkg/sql/parser/sql.y +++ b/pkg/sql/parser/sql.y @@ -7918,10 +7918,11 @@ show_range_for_row_stmt: // SHOW RANGES FROM INDEX [ @ ] [ WITH ] // // 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 {