Skip to content

Updated session vars for 19.2 and 20.1 #6647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions _includes/v19.2/misc/session-vars.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,18 @@
<td>Yes</td>
</tr>

<tr>
<td>
<code>max_identifier_length</code>
</td>
<td>(Reserved; exposed only for ORM compatibility.)</td>
<td>
<code>128</code>
</td>
<td>No</td>
<td>Yes</td>
</tr>

<tr>
<td>
<code>max_index_keys</code>
Expand Down
22 changes: 22 additions & 0 deletions _includes/v20.1/misc/session-vars.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@
<td>Yes</td>
</tr>

<tr>
<td>
<code>session_id</code>
</td>
<td>The ID of the current session.</td>
<td>Session-dependent</td>
<td>No</td>
<td>Yes</td>
</tr>

<tr>
<td>
<code>session_user</code>
Expand Down Expand Up @@ -381,6 +391,18 @@
<td>Yes</td>
</tr>

<tr>
<td>
<code>max_identifier_length</code>
</td>
<td>(Reserved; exposed only for ORM compatibility.)</td>
<td>
<code>128</code>
</td>
<td>No</td>
<td>Yes</td>
</tr>

<tr>
<td>
<code>max_index_keys</code>
Expand Down
11 changes: 6 additions & 5 deletions v19.2/show-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ Special syntax cases supported for compatibility:
~~~

~~~
variable | value
+-------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
variable | value
+-------------------------------------+---------------------------------------------------------------------------------------+
application_name | $ cockroach demo
bytea_output | hex
client_encoding | UTF8
client_min_messages | notice
crdb_version | CockroachDB OSS v19.2.0
crdb_version | CockroachDB OSS v19.2.4
database | movr
datestyle | ISO, MDY
default_int_size | 8
Expand All @@ -82,6 +82,7 @@ Special syntax cases supported for compatibility:
distsql | auto
enable_zigzag_join | on
experimental_force_split_at | off
experimental_optimizer_foreign_keys | off
experimental_serial_normalization | rowid
extra_float_digits | 2
force_savepoint_restart | off
Expand All @@ -90,10 +91,10 @@ Special syntax cases supported for compatibility:
intervalstyle | postgres
locality | region=us-east1,az=b
lock_timeout | 0
max_identifier_length | 128
max_index_keys | 32
node_id | 1
optimizer | on
optimizer_foreign_keys | off
reorder_joins_limit | 4
results_buffer_size | 16384
row_security | off
Expand All @@ -114,7 +115,7 @@ Special syntax cases supported for compatibility:
transaction_status | NoTxn
vectorize | auto
vectorize_row_count_threshold | 1000
(46 rows)
(47 rows)
~~~

## See also
Expand Down
13 changes: 8 additions & 5 deletions v20.1/show-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ Special syntax cases supported for compatibility:
~~~

~~~
variable | value
+-------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
variable | value
+-------------------------------------+-----------------------------------------------------------------------------------------------------+
application_name | $ cockroach demo
bytea_output | hex
client_encoding | UTF8
client_min_messages | notice
crdb_version | CockroachDB OSS v19.2.0
crdb_version | CockroachDB OSS v20.1.0
database | movr
datestyle | ISO, MDY
default_int_size | 8
Expand All @@ -81,7 +81,9 @@ Special syntax cases supported for compatibility:
default_transaction_read_only | off
distsql | auto
enable_zigzag_join | on
experimental_enable_temp_tables | off
experimental_force_split_at | off
experimental_optimizer_foreign_keys | off
experimental_serial_normalization | rowid
extra_float_digits | 2
force_savepoint_restart | off
Expand All @@ -90,17 +92,18 @@ Special syntax cases supported for compatibility:
intervalstyle | postgres
locality | region=us-east1,az=b
lock_timeout | 0
max_identifier_length | 128
max_index_keys | 32
node_id | 1
optimizer | on
optimizer_foreign_keys | off
reorder_joins_limit | 4
results_buffer_size | 16384
row_security | off
search_path | public
server_encoding | UTF8
server_version | 9.5.0
server_version_num | 90500
session_id | 15f5357f608545d80000000000000001
session_user | root
sql_safe_updates | on
standard_conforming_strings | on
Expand All @@ -114,7 +117,7 @@ Special syntax cases supported for compatibility:
transaction_status | NoTxn
vectorize | auto
vectorize_row_count_threshold | 1000
(46 rows)
(49 rows)
~~~

## See also
Expand Down