Anyone know the why the statement_id in the sessions system table is sized so small? A lot of times the queries that are being running get cut off because the column is too small to see the full text.
I think its a varchar(8192) as is shown in my test below:
Code: Select all
dbadmin=> create table my_sessions as select * from sessions;
CREATE TABLE
dbadmin=> \dt my_sessions;
List of tables
Schema | Name | Kind | Owner | Comment
--------------+-------------+-------+---------+---------
intersect_wh | my_sessions | table | dbadmin |
(1 row)
dbadmin=> \d my_sessions;
List of Fields by Tables
Schema | Table | Column | Type | Size | Default | Not Null | Primary Key | Foreign Key
--------------+-------------+----------------------------+---------------+------+---------+----------+-------------+-------------
verticadb_wh | my_sessions | node_name | varchar(128) | 128 | | f | f |
verticadb_wh | my_sessions | user_name | varchar(128) | 128 | | f | f |
verticadb_wh | my_sessions | client_hostname | varchar(128) | 128 | | f | f |
verticadb_wh | my_sessions | client_pid | int | 8 | | f | f |
verticadb_wh | my_sessions | login_timestamp | timestamptz | 8 | | f | f |
verticadb_wh | my_sessions | session_id | varchar(80) | 80 | | f | f |
verticadb_wh | my_sessions | client_label | varchar(256) | 256 | | f | f |
verticadb_wh | my_sessions | transaction_start | timestamptz | 8 | | f | f |
verticadb_wh | my_sessions | transaction_id | int | 8 | | f | f |
verticadb_wh | my_sessions | transaction_description | varchar(8192) | 8192 | | f | f |
verticadb_wh | my_sessions | statement_start | timestamptz | 8 | | f | f |
verticadb_wh | my_sessions | statement_id | int | 8 | | f | f |
verticadb_wh | my_sessions | last_statement_duration_us | int | 8 | | f | f |
verticadb_wh | my_sessions | runtime_priority | varchar(8192) | 8192 | | f | f |
verticadb_wh | my_sessions | current_statement | varchar(8192) | 8192 | | f | f |
verticadb_wh | my_sessions | last_statement | varchar(8192) | 8192 | | f | f |
verticadb_wh | my_sessions | ssl_state | varchar(80) | 80 | | f | f |
verticadb_wh | my_sessions | authentication_method | varchar(80) | 80 | | f | f |
(18 rows)
Thanks!