SELECT t.table_schema,t.table_name AS table_name,
SUM(ps.wos_row_count + ps.ros_row_count) AS row_count,
SUM(ps.wos_used_bytes + ps.ros_used_bytes)/(1024*1024) AS MB_count
FROM tables t
JOIN projections p ON t.table_id = p.anchor_table_id
JOIN projection_storage ps on p.projection_name = ps.projection_name
WHERE (ps.wos_used_bytes + ps.ros_used_bytes) > 500000
GROUP BY t.table_schema,t.table_name
ORDER BY MB_count DESC;
Vedere l'elenco della tabelle
SELECT * FROM tables;
Verificare le query attive
select node_name, user_name, client_hostname, session_id, transaction_start, statement_start, current_statement
from sessions
Killare una sessione
Inserire come parametro il campo session_id
SELECT CLOSE_SESSION('vertica01.pgh.wpahs774:0x1db5bb');
Nessun commento:
Posta un commento