//
Search across all documentation pages
timestamptz for all event timestamps. Store UTC; convert at display.(device_id, ts DESC) btree common pattern.timestamp without time zone. DST and session TZ bugs (see defect scenarios).ts for append-only partitions. Complement, not replace, btree for device+time.SELECT on raw history.DROP TABLE partition or Timescale add_retention_policy.DETACH then export Parquet.Stack versions: This page was written for PostgreSQL 18.4 (stable 18, maintenance 17), pgvector 0.8+, PostGIS 3.5+, pgbouncer 1.x, and Patroni 3.x.
Reviewed by Chris St. John·Last updated Jul 18, 2026