Products
Time series and analytics
PostgreSQL but faster. Built for lightning-fast ingest and querying of time-based and event data.
Time series and analyticsAI and Vector
PostgreSQL for AI. Seamlessly build RAG, search, and AI agents with the pgvector, pgvectorscale, and pgai extensions.
AI and VectorDeployment options & services
Support Services
Support options to adapt to your use case, infrastructure, and budget.
Open-Source Extensions and Tools
Open-source PostgreSQL extensions you can run on your own instances.
Security scanner
pgspot
We’re in your corner even during the trial phase. Contact us to discuss your use case with a Timescale technical expert.
Timescale is PostgreSQL made Powerful
Industries that rely on us
Featured articles
PostgreSQL for Industrial IoT Data
How OpenSauced Is Building a Copilot for Git History With pgvector and Timescale
AI and Vector
PostgreSQL for AI. Seamlessly build RAG, search, and AI agents with the pgvector, pgvectorscale, and pgai extensions.
pgai docspgvector docsAI and VectorLearn PostgreSQL
Timescale is PostgreSQL, but faster. Learn the PostgreSQL basics and scale your database performance to new heights
Subscribe to the Timescale Newsletter
By submitting, you acknowledge Timescale’s Privacy Policy
By submitting, you acknowledge Timescale’s Privacy Policy
SELECT
pid
,datname
,usename
,application_name
,client_hostname
,state
,client_port
,backend_start
,query_start
,query
FROM pg_stat_activity
// Monitors Postgres sessions (SQL)
Few important parameters to know
Pid - Backend process ID
Datname - Database name
Username - User running the query
Application_name - Client application name
State - State of Session (e.g., active, waiting, idle ..)
Query - Query executed
SELECT pg_cancel_backend(pid);
// To cancel a running query with pid provided. This is useful in case of killing long-running queries (SQL)
SELECT
nspname || '.' || relname AS "Object Name", relkind As "Object Type",
pg_size_pretty(pg_relation_size(C.oid)) AS "size"
FROM pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
WHERE nspname NOT IN ('pg_catalog', 'information_schema')
ORDER BY pg_relation_size(C.oid) DESC
LIMIT 20;
// Top 20 big tables/indexes (excluding catalog tables) (SQL)