sessions vs vs_sessions

Moderator: NorbertKrupa

Post Reply
User avatar
nnani
Master
Master
Posts: 302
Joined: Fri Apr 13, 2012 6:28 am
Contact:

sessions vs vs_sessions

Post by nnani » Wed Sep 03, 2014 12:10 pm

Hello All,

Came across this system table vs_sessions and was confused as to what does this table show.

The session tables show the sessions information, but it seems this table is different from sessions table.
This table does not belong to v_internal or v_monitor or v_catalog schema.

Thanks
nnani........
Long way to go

You can check out my blogs at vertica-howto

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: sessions vs vs_sessions

Post by NorbertKrupa » Wed Sep 03, 2014 2:54 pm

According to the table descriptions, sessions shouldn't contain internal sessions:

Code: Select all

dbadmin=> select * from vs_system_tables where table_name IN ('sessions', 'vs_sessions');
 table_schema | table_name  | table_id |                     table_description                      | is_view | is_dc
--------------+-------------+----------+------------------------------------------------------------+---------+-------
 v_internal   | vs_sessions |    22600 | Information on each Session (internal or external session) | f       | f
 v_monitor    | sessions    |    31000 | Information on each Session                                | f       | f
(2 rows)
Checkout vertica.tips for more Vertica resources.

User avatar
nnani
Master
Master
Posts: 302
Joined: Fri Apr 13, 2012 6:28 am
Contact:

Re: sessions vs vs_sessions

Post by nnani » Thu Sep 04, 2014 2:44 am

Thanks norbert !!!! :)
nnani........
Long way to go

You can check out my blogs at vertica-howto

Post Reply

Return to “Vertica Database Administration”