How to check if a session is active or not ?
I'm new to vertica and I'm using this sql statement, but I'm not sure if I'm doing it right ?
any suggestion or sample query ?
select count(*) from sessions where transaction_id > 0 => for active sessions
select count(*) from sessions where transaction_id <= 0 or current_statement =' '
=> for active sessions
regards,
Patrick
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
