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
create index idx_employee_emp_name on employee using btree (emp_name asc);
// Create a new index on the emp_name column of the employee table (SQL)
This index specifies “btree” as the index method and uses “asc” to store the index key column data in ascending order.
\d employee
postgres=# \d employee;
Table "public.employee"
Column | Type | Modifiers
------------+-----------------------+-----------------------------------------------------------
emp_id | integer | not null default nextval('employee_emp_id_seq'::regclass)
emp_name | character varying(50) | not null
emp_salary | numeric(9,2) | not null
Indexes:
"employee_pkey" PRIMARY KEY, btree (emp_id)
"idx_employee_emp_name" btree (emp_name)
// List indexes of a table along with table definition (psql)
\di
List of relations
Schema | Name | Type | Owner | Table
--------+-----------------------+-------+----------+----------
public | employee_pkey | index | postgres | employee
public | idx_employee_emp_name | index | postgres | employee
(2 rows)
// List all indexes from all tables (psql)
Database indexes in Timescale work the same as in regular PostgreSQL. When working with Timescale’s hypertables (which abstract partitioning, taking care of it automatically), Timescale will also create the indexes automatically. Try Timescale for free today.
drop index idx_employee_emp_name;
// Drop an existing index from a table (SQL)