Skip to content

Commit

Permalink
display timestamptz for the respective sessions (#17985)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleykwtam authored Nov 3, 2023
1 parent 1bad9b7 commit 9935197
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/current/v23.1/show-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Field | Description
`application_name` | The [application name]({% link {{ page.version.version }}/set-vars.md %}#supported-variables) specified by the client, if any. For sessions from the [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}), this will be `cockroach`.
`active_queries` | The SQL queries currently active in the session.
`last_active_query` | The most recently completed SQL query in the session.
`session_start` | The timestamp at which the session started.
`oldest_query_start` | The timestamp at which the oldest currently active SQL query in the session started.
`session_start` | The [`timestamptz`]({% link {{ page.version.version }}/timestamp.md %}) at which the session started.
`oldest_query_start` | The [`timestamptz`]({% link {{ page.version.version }}/timestamp.md %}) at which the oldest currently active SQL query in the session started.
`kv_txn` | The ID of the current key-value transaction for the session.

## Examples
Expand Down
2 changes: 1 addition & 1 deletion src/current/v23.1/show-statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Field | Description
`node_id` | The ID of the node.
`session_id` | The ID of the session.
`user_name` | The username of the connected user.
`start` | The timestamp at which the query started.
`start` | The [`timestamptz`]({% link {{ page.version.version }}/timestamp.md %}) at which the query started.
`query` | The SQL query.
`client_address` | The address and port of the client that issued the SQL query.
`application_name` | The [application name]({% link {{ page.version.version }}/set-vars.md %}#supported-variables) specified by the client, if any. For queries from the [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}), this will be `$ cockroach sql`.
Expand Down
4 changes: 2 additions & 2 deletions src/current/v23.2/show-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Field | Description
`application_name` | The [application name]({% link {{ page.version.version }}/set-vars.md %}#supported-variables) specified by the client, if any. For sessions from the [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}), this will be `cockroach`.
`active_queries` | The SQL queries currently active in the session.
`last_active_query` | The most recently completed SQL query in the session.
`session_start` | The timestamp at which the session started.
`oldest_query_start` | The timestamp at which the oldest currently active SQL query in the session started.
`session_start` | The [`timestamptz`]({% link {{ page.version.version }}/timestamp.md %}) at which the session started.
`oldest_query_start` | The [`timestamptz`]({% link {{ page.version.version }}/timestamp.md %}) at which the oldest currently active SQL query in the session started.
`kv_txn` | The ID of the current key-value transaction for the session.

## Examples
Expand Down
2 changes: 1 addition & 1 deletion src/current/v23.2/show-statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Field | Description
`node_id` | The ID of the node.
`session_id` | The ID of the session.
`user_name` | The username of the connected user.
`start` | The timestamp at which the query started.
`start` | The [`timestamptz`]({% link {{ page.version.version }}/timestamp.md %}) at which the query started.
`query` | The SQL query.
`client_address` | The address and port of the client that issued the SQL query.
`application_name` | The [application name]({% link {{ page.version.version }}/set-vars.md %}#supported-variables) specified by the client, if any. For queries from the [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}), this will be `$ cockroach sql`.
Expand Down

0 comments on commit 9935197

Please sign in to comment.