Tutorial: Exploring HeliosDB with SHOW Commands
Tutorial: Exploring HeliosDB with SHOW Commands
Level: Basic | Time: 10 minutes | Version: 7.2.0
HeliosDB exposes 100+ administrative SHOW commands that work from any PostgreSQL client.
Connect
psql -h localhost -p 5432 -U admin -d heliosdbDiscover Your Database
-- List all tablesSHOW TABLES;
-- Describe a table's columnsSHOW COLUMNS FROM users;
-- View DDL for a tableSHOW CREATE TABLE users;
-- List all indexesSHOW INDEXES;
-- List all databasesSHOW DATABASES;Server Information
-- Version, protocols, statusSHOW SERVER STATUS;
-- All 14 protocol adaptersSHOW PROTOCOLS;
-- Active connectionsSHOW CONNECTIONS;
-- All session parametersSHOW ALL;Storage Internals
-- LSM engine stats (hot/warm/cold breakdown)SHOW STORAGE STATUS;
-- Storage tier distributionSHOW STORAGE TIERS;
-- WAL configurationSHOW WAL STATUS;
-- Query parse cache statsSHOW QUERY CACHE;
-- SSTable bloom filter statsSHOW BLOOM FILTERS;Clearing Caches
-- Clear query parse cache (useful between benchmarks)FLUSH QUERY CACHE;
-- Clear scan result cacheFLUSH SCAN CACHE;
-- Clear buffer poolFLUSH BUFFER POOL;What’s Next
- EXPLAIN Tutorial — Query plan analysis
- Redis Protocol — Using HeliosDB as Redis
- CDC Events — Change data capture