diff --git a/_data/sidebar_doc.yml b/_data/sidebar_doc.yml
index 06146753d80..bfc9a982ed6 100644
--- a/_data/sidebar_doc.yml
+++ b/_data/sidebar_doc.yml
@@ -56,6 +56,9 @@ entries:
- title: Install Client Drivers
url: /install-client-drivers.html
+ - title: SQL Feature Support
+ url: /sql-feature-support.html
+
thirdlevel:
- title: SQL Statements
thirdlevelitems:
@@ -216,10 +219,27 @@ entries:
- title: UPSERT
url: /upsert.html
- - title: SQL Grammar
- url: /sql-grammar.html
+ - title: SQL Syntax
+ thirdlevelitems:
+
+ - title: Keywords & Identifiers
+ url: /keywords-and-identifiers.html
+
+ - title: Constants
+ url: /sql-constants.html
+
+ - title: Value Expressions
+ url: /sql-expressions.html
+
+ - title: Table Expressions
+ url: /table-expressions.html
+
+ - title: Name Resolution
+ url: /sql-name-resolution.html
+
+ - title: Full SQL Grammar
+ url: /sql-grammar.html
- thirdlevel:
- title: Constraints
thirdlevelitems:
@@ -247,12 +267,6 @@ entries:
- title: Data Definition
thirdlevelitems:
- - title: Keywords & Identifiers
- url: /keywords-and-identifiers.html
-
- - title: Constants
- url: /sql-constants.html
-
- title: Indexes
url: /indexes.html
@@ -307,15 +321,6 @@ entries:
- title: BYTES
url: /bytes.html
- - title: Expressions
- thirdlevelitems:
-
- - title: Value Expressions
- url: /sql-expressions.html
-
- - title: Table Expressions
- url: /table-expressions.html
-
- title: Privileges
url: /privileges.html
@@ -422,9 +427,6 @@ entries:
- title: CockroachDB in Comparison
url: /cockroachdb-in-comparison.html
- - title: SQL Feature Support
- url: /sql-feature-support.html
-
- title: CockroachDB Architecture
url: /cockroachdb-architecture.html
diff --git a/show-all.md b/show-all.md
index 4a54375f6d3..7e11ebd01a6 100644
--- a/show-all.md
+++ b/show-all.md
@@ -24,6 +24,9 @@ Variable | Description
------|------------
`DATABASE` | The default database for the current session, as set by [`SET DATABASE`](set-database.html) or the client's connection string. This variable can be viewed with [`SHOW DATABASE`](show-database.html) as well.
`DEFAULT_TRANSACTION_ISOLATION` | The default transaction isolation level for the current session, as set by `SET DEFAULT_TRANSACTION_ISOLATION` or the client's connection string.
+`MAX_INDEX_KEYS` | Not usable; exposed only for ORM compatibility.
+`SEARCH_PATH` | A list of databases or namespaces that will be searched to resolve unqualified table or function names. For more details, see [Name Resolution](sql-name-resolution.html).
+`SERVER_VERSION` | The version of PostgreSQL that CockroachDB emulates.
`SYNTAX` | The default SQL syntax for the current session, as set by `SET SYNTAX`. This variable can be viewed with `SHOW SYNTAX` as well.
`TIME ZONE` | The default time zone for the current session, as set by [`SET TIME ZONE`](set-time-zone.html). This variable can be viewed with [`SHOW TIME ZONE`](show-time-zone.html) as well.
`TRANSACTION ISOLATION LEVEL` | The isolation level of the current transaction, as set by [`SET TRANSACTION ISOLATION LEVEL`](set-transaction.html). When run in the context of a transaction, [`SHOW TRANSACTION ISOLATION LEVEL`](show-transaction.html) returns this variable as well.
This will differ from `DEFAULT_TRANSACTION_ISOLATION` only when `SHOW ALL` is run in the context of a transaction and `SET TRANSACTION ISOLATION LEVEL` has been used to set a non-default isolation level for the specific transaction.
@@ -34,18 +37,22 @@ Variable | Description
~~~ sql
> SHOW ALL;
~~~
+
~~~
+-------------------------------+--------------+
| Variable | Value |
+-------------------------------+--------------+
-| DATABASE | bank |
+| DATABASE | test |
| DEFAULT_TRANSACTION_ISOLATION | SERIALIZABLE |
+| MAX_INDEX_KEYS | 32 |
+| SEARCH_PATH | pg_catalog |
+| SERVER_VERSION | 9.5.0 |
| SYNTAX | Traditional |
| TIME ZONE | UTC |
| TRANSACTION ISOLATION LEVEL | SERIALIZABLE |
| TRANSACTION PRIORITY | NORMAL |
+-------------------------------+--------------+
-(6 rows)
+(9 rows)
~~~
## See Also
diff --git a/sql-name-resolution.md b/sql-name-resolution.md
index ad0003725df..d14b33be5a1 100644
--- a/sql-name-resolution.md
+++ b/sql-name-resolution.md
@@ -7,17 +7,17 @@ toc: false
A SQL client can have access to multiple databases side-by-side. The
same table name (e.g., `orders`) can exist in multiple
databases. When a query specifies a table name without a database
-name (e.g., `select * from orders`), how does CockroachDB know
+name (e.g., `SELECT * FROM orders`), how does CockroachDB know
which `orders` table is being considered?
-This page details how CockroachDB performs *name resolution* to answer
+This page details how CockroachDB performs **name resolution** to answer
this question.