TigerData logo
TigerData logo
  • Product

    Product

    Tiger Cloud

    Robust elastic cloud platform for startups and enterprises

    TimescaleDB Enterprise

    Self-managed TimescaleDB for on-prem, edge and private cloud

    Open source

    TimescaleDB

    Time-series, real-time analytics and events on Postgres

    Search

    Vector and keyword search on Postgres

  • Industry

    Data Centers

    Energy & Utilities

    Oilfield Services

    Smart Manufacturing

    Crypto

  • Docs
  • Pricing
  • Developer Hub

    Changelog

    Benchmarks

    Blog

    Community

    Customer Stories

    Events

    Support

    Integrations

    Launch Hub

  • Company

    About

    TigerData logo

    Timescale

    Partners

    Security

    Careers

View on GitHub (opens in a new tab)

Contact usStart a free trial
Home
Tiger MCP vs. a Generic Postgres MCP Server
Exponential Smoothing and Holt-Winters in PostgreSQL: SES, Holt, and Triple Smoothing in SQLTime-Series Database vs. Relational Database: When Postgres Is Enough and When It Isn'tTime Series Forecasting with PostgreSQL: Methods, SQL Examples, and When to Use PythonTime-Series Analysis and Forecasting With Python Why Consider Using PostgreSQL for Time-Series Data?Time-Series Analysis in RWhat Is Temporal Data?Understanding Autoregressive Time-Series ModelingAlternatives to TimescaleStationary Time-Series AnalysisWhat Are Open-Source Time-Series Databases—Understanding Your OptionsIs Your Data Time Series? Data Types Supported by PostgreSQL and TimescaleUnderstanding Database Workloads: Variable, Bursty, and Uniform PatternsThe Best Time-Series Databases Compared (2026)Time Series Anomaly Detection: Methods, SQL, and Real-Time ImplementationAWS Timestream Alternatives: Your Migration Options After LiveAnalyticsTime-Series Database: What It Is, How It Works, and When You Need OneWhat Is a Time Series and How Is It Used?How to Work With Time Series in Python?Tools for Working With Time-Series Analysis in PythonGuide to Time-Series Analysis in PythonCreating a Fast Time-Series Graph With Postgres Materialized Views
OpenTelemetry Backend: Choosing Metrics Storage That Doesn't Lock You InGPU Cluster Monitoring: The Database Behind AI Infrastructure TelemetryWhat Is DCIM Software, and What Database Does It Use?Data Center Power Monitoring: The Database Layer Behind PUE, PDU, and Sustainability MetricsPrometheus Long-Term Storage: Thanos, Mimir, VictoriaMetrics, and PostgreSQL Compared
Understanding PostgreSQLUnderstanding SQL Aggregate FunctionsUnderstanding the rank() and dense_rank() Functions in PostgreSQLUnderstanding percentile_cont() and percentile_disc() in PostgreSQLStructured vs. Semi-Structured vs. Unstructured Data in PostgreSQLOptimizing Your Database: A Deep Dive into PostgreSQL Data TypesPostgres Cheat SheetHow to Address ‘Error: Could Not Resize Shared Memory Segment’ Understanding the Postgres extract() FunctionUnderstanding FROM in PostgreSQL (With Examples)How to Install PostgreSQL on LinuxHow to Install PostgreSQL on MacOSUnderstanding FILTER in PostgreSQL (With Examples)Understanding HAVING in PostgreSQL (With Examples)5 Common Connection Errors in PostgreSQL and How to Solve ThemUnderstanding GROUP BY in PostgreSQL (With Examples)How to Fix No Partition of Relation Found for Row in Postgres DatabasesUnderstanding LIMIT in PostgreSQL (With Examples)How to Fix Transaction ID Wraparound ExhaustionUnderstanding ORDER BY in PostgreSQL (With Examples)Understanding PostgreSQL FunctionsUnderstanding WINDOW in PostgreSQL (With Examples)Understanding PostgreSQL WITHIN GROUPPostgreSQL Mathematical Functions: Enhancing Coding EfficiencyUnderstanding DISTINCT in PostgreSQL (With Examples)Understanding WHERE in PostgreSQL (With Examples)Understanding OFFSET in PostgreSQL (With Examples)Understanding the Postgres string_agg FunctionUnderstanding PostgreSQL SELECTWhat Characters Are Allowed in PostgreSQL Strings?What Is Data Transformation, and Why Is It Important?What Is Data Compression and How Does It Work?Using PostgreSQL UPDATE With JOINUnderstanding PostgreSQL User-Defined FunctionsUnderstanding Foreign Keys in PostgreSQLData Processing With PostgreSQL Window FunctionsUnderstanding PostgreSQL Date and Time FunctionsWhat Is a PostgreSQL Full Outer Join?What Is a PostgreSQL Inner Join?What Is a PostgreSQL Left Join? And a Right Join?PostgreSQL Join Type TheoryA Guide to PostgreSQL ViewsStrategies for Improving Postgres JOIN PerformanceUnderstanding PostgreSQL's COALESCE FunctionUnderstanding PostgreSQL Array FunctionsUnderstanding PostgreSQL Conditional FunctionsUsing PostgreSQL String Functions for Improved Data AnalysisPostgreSQL vs. Cassandra: The Decision Framework for Time-Series and Write-Heavy WorkloadsPostgreSQL Joins : A SummaryWhat Is a PostgreSQL Cross Join?Data Partitioning: What It Is and Why It MattersSelf-Hosted or Cloud Database? A Countryside Reflection on Infrastructure ChoicesUnderstanding ACID Compliance
Connect Your AI Coding Agent to Tiger Cloud: Setup for Cursor, Claude Code, VS Code, and MoreHow to Monitor and Optimize PostgreSQL Index PerformanceGuide to PostgreSQL PerformancePostgreSQL Performance Tuning: Designing and Implementing Your Database SchemaPostgreSQL Performance Tuning: Key ParametersPostgreSQL Performance Tuning: Optimizing Database IndexesDetermining the Optimal Postgres Partition SizeWhen to Consider Postgres PartitioningAn Intro to Data Modeling on PostgreSQLDesigning Your Database Schema: Wide vs. Narrow Postgres TablesGuide to PostgreSQL Database OperationsBest Practices for Time-Series Data Modeling: Single or Multiple Partitioned Table(s) a.k.a. Hypertables Best Practices for (Time-)Series Metadata Tables A PostgreSQL Database Replication GuideA Guide to Data Analysis on PostgreSQLHow to Query JSONB in PostgreSQLHow to Compute Standard Deviation With PostgreSQLPostgreSQL Performance Tuning: How to Size Your DatabaseSQL/JSON Data Model and JSON in SQL: A PostgreSQL PerspectiveUnderstanding PostgreSQL TablespacesTop PostgreSQL Drivers for PythonPg_partman vs. Hypertables for Postgres PartitioningExplaining PostgreSQL EXPLAINGuide to PostgreSQL Database DesignHow PostgreSQL Data Aggregation WorksBuilding a Scalable DatabaseA Guide to pg_restore (and pg_restore Example)How to Index JSONB Columns in PostgreSQLWhat Is Audit Logging and How to Enable It in PostgreSQLOptimizing Array Queries With GIN Indexes in PostgreSQLHow to Reduce Bloat in Large PostgreSQL TablesGuide to PostgreSQL SecurityHow to Query JSON Metadata in PostgreSQLRecursive Query in SQL: What It Is, and How to Write OneNavigating Growing PostgreSQL Tables With Partitioning (and More)What Is a PostgreSQL Temporary View?How to Use PostgreSQL for Data TransformationHandling Large Objects in PostgresHow to Use Psycopg2: The PostgreSQL Adapter for PythonA Guide to Scaling PostgreSQLAWS Timestream for InfluxDB Alternative: When You Need to Look FurtherHow to Migrate from AWS Timestream to PostgreSQL: A Technical GuideHow to Choose a Database: A Decision Framework for Modern ApplicationsGuide to Postgres Data Management
Time-Series Database High Availability and Disaster RecoveryBest Practices for Scaling PostgreSQLHow to Store Video in PostgreSQL Using BYTEABest Practices for Postgres PerformanceHow to Design Your PostgreSQL Database: Two Schema ExamplesBest Practices for PostgreSQL Database OperationsHow to Manage Your Data With Data Retention PoliciesBest Practices for PostgreSQL Data AnalysisBest Practices for PostgreSQL AggregationBest Practices for Postgres Database ReplicationBest Practices for Postgres Data ManagementHow to Use a Common Table Expression (CTE) in SQLHow to Use PostgreSQL for Data NormalizationTesting Postgres Ingest: INSERT vs. Batch INSERT vs. COPYBest Practices for Postgres SecurityHow to Handle High-Cardinality Data in PostgreSQLPostgreSQL Compression: Every Option, When To Use Each, and What To Expect
The Best PostgreSQL Extensions for Analytics Workloads: A Field GuidePostgreSQL Extensions: amcheckPostgreSQL Extensions: Unlocking Multidimensional Points With Cube PostgreSQL Extensions: hstorePostgreSQL Extensions: ltreePostgreSQL Extensions: Secure Your Time-Series Data With pgcryptoPostgreSQL Extensions: pg_prewarmPostgreSQL Extensions: pgRoutingPostgreSQL Extensions: pg_stat_statementsPostgreSQL Extensions: Database Testing With pgTAPPostgreSQL Extensions: Install pg_trgm for Data MatchingPostgreSQL Extensions: PL/pgSQLPostgreSQL Extensions: Using PostGIS and Timescale for Advanced Geospatial InsightsPostgreSQL Extensions: Intro to uuid-osspTurning PostgreSQL Into a Vector Database With pgvector
What Is ClickHouse and How Does It Compare to PostgreSQL and TimescaleDB for Time Series?Timescale vs. Amazon RDS PostgreSQL: Up to 350x Faster Queries, 44 % Faster Ingest, 95 % Storage Savings for Time-Series DataWhat We Learned From Benchmarking Amazon Aurora PostgreSQL ServerlessTimescaleDB vs. Amazon Timestream: 6,000x Higher Inserts, 5-175x Faster Queries, 150-220x CheaperHow to Store Time-Series Data in MongoDB and Why That’s a Bad IdeaPostgreSQL + TimescaleDB: 1,000x Faster Queries, 90 % Data Compression, and Much MoreEye or the Tiger: Benchmarking Cassandra vs. TimescaleDB for Time-Series Data
The Best Databases for IoT in 2026: A Practical ComparisonMES Data Architecture: Modeling Work Orders, Genealogy, and Historian IntegrationMeter Data Management: Why AMI Interval Data Breaks Legacy MDM SystemsGeofencing and Driver Behavior Analytics: How to Store Both in One DatabaseWhich Database for a Digital Twin? Digital Twin Database Options ComparedGrid Modernization: Why the Data Layer Decides Whether It WorksFleet Telemetry Database: How to Store and Query Vehicle Sensor Data at ScaleUnderstanding IoT (Internet of Things)A Beginner’s Guide to IIoT and Industry 4.0DERMS Database: Solving the Single Source of DER Data ProblemForecasting the Physical World: Foundation Models for Predictive MaintenanceBuilding Energy Management System: The Data Layer Behind Energy Monitoring, Sub-Metering, and M&VSmart Building Analytics: Turning BMS Telemetry Into Occupancy, Energy, and HVAC InsightEV Charging Load ManagementBuilding Management System Database: Architecture for BACnet, Modbus, and Smart Building Sensor Data at ScaleSmart Grid Data Platform: Architecting for SCADA, AMI, PMU, and DERMS Data at ScaleDigital Twin Architecture: The Database and Data Model Behind a Digital TwinCAN Bus Data Logger: Decoding DBC and J1939 Signals into PostgresPredictive Maintenance Database Architecture: Storing and Querying Sensor Data for Failure PredictionPhysical AI Telemetry: Database Architecture for Autonomous-Vehicle FleetsPlant Historian: What It Captures and Where the Analytics Layer BeginsManufacturing Analytics Database: Architecture for Real-Time Production DataRobot Fleet Telemetry: Database Architecture for AMR, Industrial Robot, and Service Robot DataData Center Monitoring: What Database Stores Your Telemetry?EV Charging Management System: Architecture, OCPP Data, and the Right DatabaseIIoT Database Requirements: Six Things Your Database Must DoWater Utilities Database: How to Store and Query SCADA, AMI, and Quality Data at ScaleWhat Is an Edge Database? On-Device Storage, Sync Patterns, and Choosing the Right StackData Historian vs. Time-Series Database: How to Choose and When to SwitchWhat Is a Data Historian?How Hopthru Powers Real-Time Transit Analytics From a 1 TB TableStoring IoT Data: 8 Reasons Why You Should Use PostgreSQLHow to Simulate a Basic IoT Sensor Dataset on PostgreSQLFrom Ingest to Insights in Milliseconds: Everactive's Tech Transformation With TimescaleHow Ndustrial Is Providing Fast Real-Time Queries and Safely Storing Client Data With 97 % CompressionWhy You Should Use PostgreSQL for Industrial IoT Data Migrating a Low-Code IoT Platform Storing 20M Records/DayHow United Manufacturing Hub Is Introducing Open Source to ManufacturingBuilding IoT Pipelines for Faster Analytics With IoT CoreVisualizing IoT Data at Scale With Hopara and TimescaleDB
A Brief History of AI: How Did We Get Here, and What's Next?A Beginner’s Guide to Vector EmbeddingsPostgreSQL as a Vector Database: A Pgvector TutorialUsing Pgvector With PythonHow to Choose a Vector DatabaseVector Databases Are the Wrong AbstractionUnderstanding DiskANNA Guide to Cosine SimilarityStreaming DiskANN: How We Made PostgreSQL as Fast as Pinecone for Vector DataImplementing Cosine Similarity in PythonVector Database Basics: HNSWVector Database Options for AWSVector Store vs. Vector Database: Understanding the ConnectionPgvector vs. Pinecone: Vector Database Performance and Cost ComparisonHow to Build LLM Applications With Pgvector Vector Store in LangChainHow to Implement RAG With Amazon Bedrock and LangChainRAG Is More Than Just Vector SearchRefining Vector Search Queries With Time Filters in Pgvector: A TutorialUnderstanding Semantic SearchWhat Is Vector Search? Text-to-SQL: A Developer’s Zero-to-Hero GuideWhen Should You Use Full-Text Search vs. Vector Search?HNSW vs. DiskANNVector Search vs Semantic SearchBuilding AI Agents with Persistent Memory: A Unified Database ApproachNearest Neighbor Indexes: What Are IVFFlat Indexes in Pgvector and How Do They WorkPostgreSQL Hybrid Search Using Pgvector and CohereBuilding an AI Image Gallery With OpenAI CLIP, Claude Sonnet 3.5, and Pgvector
PostgreSQL as a Real-Time Analytics DatabaseTick Data and OHLC Candlesticks in PostgreSQLPostgreSQL OLTP: Transactions, Scale, and the Architecture That Makes It WorkUnderstanding OLAP: What It Is, How It Differs From OLTP, and Running It on PostgreSQLColumnar Databases vs. Row-Oriented Databases: Which to Choose?How to Choose an OLAP Database: A Practical Decision Guide (2026)Data Analytics vs. Real-Time Analytics: How to Pick Your Database (and Why It Should Be PostgreSQL)How to Choose a Real-Time Analytics DatabaseWhat Is the Best Database for Real-Time AnalyticsHow to Build an IoT Pipeline for Real-Time Analytics in PostgreSQL
Alternatives to RDSWhy Is RDS so Expensive? Understanding RDS Pricing and CostsEstimating RDS CostsHow to Migrate From AWS RDS for PostgreSQL to TimescaleAmazon Aurora vs. RDS: Understanding the Difference
5 InfluxDB Alternatives for Your Time-Series Data8 Reasons to Choose Timescale as Your InfluxDB Alternative InfluxQL, Flux, and SQL: Which Query Language Is Best? (With Cheatsheet)What InfluxDB Got WrongTimescaleDB vs. InfluxDB: Purpose Built Differently for Time-Series Data
5 Ways to Monitor Your PostgreSQL DatabaseHow to Migrate Your Data to Timescale (3 Ways)Postgres TOAST vs. Timescale CompressionBuilding Python Apps With PostgreSQL: A Developer's GuideData Visualization in PostgreSQL With Apache SupersetMore Time-Series Data Analysis, Fewer Lines of Code: Meet HyperfunctionsIs Postgres Partitioning Really That Hard? An Introduction To HypertablesPostgreSQL Materialized Views and Where to Find ThemTime-Series Downsampling: The Complete Guide to Tiered Data Resolution in SQLContinuous Aggregates: Incremental Materialized Views for Time-Series DataComplete Guide: Migrating from MongoDB to Tiger Data (Step-by-Step)Timescale Tips: Testing Your Chunk Size
Postgres cheat sheet
HomeAlternativesTime-series basicsData Center & Infrastructure TelemetryPostgres basicsPostgres guidesPostgres best practices
Home
Tiger MCP vs. a Generic Postgres MCP Server
Exponential Smoothing and Holt-Winters in PostgreSQL: SES, Holt, and Triple Smoothing in SQLTime-Series Database vs. Relational Database: When Postgres Is Enough and When It Isn'tTime Series Forecasting with PostgreSQL: Methods, SQL Examples, and When to Use PythonTime-Series Analysis and Forecasting With Python Why Consider Using PostgreSQL for Time-Series Data?Time-Series Analysis in RWhat Is Temporal Data?Understanding Autoregressive Time-Series ModelingAlternatives to TimescaleStationary Time-Series AnalysisWhat Are Open-Source Time-Series Databases—Understanding Your OptionsIs Your Data Time Series? Data Types Supported by PostgreSQL and TimescaleUnderstanding Database Workloads: Variable, Bursty, and Uniform PatternsThe Best Time-Series Databases Compared (2026)Time Series Anomaly Detection: Methods, SQL, and Real-Time ImplementationAWS Timestream Alternatives: Your Migration Options After LiveAnalyticsTime-Series Database: What It Is, How It Works, and When You Need OneWhat Is a Time Series and How Is It Used?How to Work With Time Series in Python?Tools for Working With Time-Series Analysis in PythonGuide to Time-Series Analysis in PythonCreating a Fast Time-Series Graph With Postgres Materialized Views
OpenTelemetry Backend: Choosing Metrics Storage That Doesn't Lock You InGPU Cluster Monitoring: The Database Behind AI Infrastructure TelemetryWhat Is DCIM Software, and What Database Does It Use?Data Center Power Monitoring: The Database Layer Behind PUE, PDU, and Sustainability MetricsPrometheus Long-Term Storage: Thanos, Mimir, VictoriaMetrics, and PostgreSQL Compared
Understanding PostgreSQLUnderstanding SQL Aggregate FunctionsUnderstanding the rank() and dense_rank() Functions in PostgreSQLUnderstanding percentile_cont() and percentile_disc() in PostgreSQLStructured vs. Semi-Structured vs. Unstructured Data in PostgreSQLOptimizing Your Database: A Deep Dive into PostgreSQL Data TypesPostgres Cheat SheetHow to Address ‘Error: Could Not Resize Shared Memory Segment’ Understanding the Postgres extract() FunctionUnderstanding FROM in PostgreSQL (With Examples)How to Install PostgreSQL on LinuxHow to Install PostgreSQL on MacOSUnderstanding FILTER in PostgreSQL (With Examples)Understanding HAVING in PostgreSQL (With Examples)5 Common Connection Errors in PostgreSQL and How to Solve ThemUnderstanding GROUP BY in PostgreSQL (With Examples)How to Fix No Partition of Relation Found for Row in Postgres DatabasesUnderstanding LIMIT in PostgreSQL (With Examples)How to Fix Transaction ID Wraparound ExhaustionUnderstanding ORDER BY in PostgreSQL (With Examples)Understanding PostgreSQL FunctionsUnderstanding WINDOW in PostgreSQL (With Examples)Understanding PostgreSQL WITHIN GROUPPostgreSQL Mathematical Functions: Enhancing Coding EfficiencyUnderstanding DISTINCT in PostgreSQL (With Examples)Understanding WHERE in PostgreSQL (With Examples)Understanding OFFSET in PostgreSQL (With Examples)Understanding the Postgres string_agg FunctionUnderstanding PostgreSQL SELECTWhat Characters Are Allowed in PostgreSQL Strings?What Is Data Transformation, and Why Is It Important?What Is Data Compression and How Does It Work?Using PostgreSQL UPDATE With JOINUnderstanding PostgreSQL User-Defined FunctionsUnderstanding Foreign Keys in PostgreSQLData Processing With PostgreSQL Window FunctionsUnderstanding PostgreSQL Date and Time FunctionsWhat Is a PostgreSQL Full Outer Join?What Is a PostgreSQL Inner Join?What Is a PostgreSQL Left Join? And a Right Join?PostgreSQL Join Type TheoryA Guide to PostgreSQL ViewsStrategies for Improving Postgres JOIN PerformanceUnderstanding PostgreSQL's COALESCE FunctionUnderstanding PostgreSQL Array FunctionsUnderstanding PostgreSQL Conditional FunctionsUsing PostgreSQL String Functions for Improved Data AnalysisPostgreSQL vs. Cassandra: The Decision Framework for Time-Series and Write-Heavy WorkloadsPostgreSQL Joins : A SummaryWhat Is a PostgreSQL Cross Join?Data Partitioning: What It Is and Why It MattersSelf-Hosted or Cloud Database? A Countryside Reflection on Infrastructure ChoicesUnderstanding ACID Compliance
Connect Your AI Coding Agent to Tiger Cloud: Setup for Cursor, Claude Code, VS Code, and MoreHow to Monitor and Optimize PostgreSQL Index PerformanceGuide to PostgreSQL PerformancePostgreSQL Performance Tuning: Designing and Implementing Your Database SchemaPostgreSQL Performance Tuning: Key ParametersPostgreSQL Performance Tuning: Optimizing Database IndexesDetermining the Optimal Postgres Partition SizeWhen to Consider Postgres PartitioningAn Intro to Data Modeling on PostgreSQLDesigning Your Database Schema: Wide vs. Narrow Postgres TablesGuide to PostgreSQL Database OperationsBest Practices for Time-Series Data Modeling: Single or Multiple Partitioned Table(s) a.k.a. Hypertables Best Practices for (Time-)Series Metadata Tables A PostgreSQL Database Replication GuideA Guide to Data Analysis on PostgreSQLHow to Query JSONB in PostgreSQLHow to Compute Standard Deviation With PostgreSQLPostgreSQL Performance Tuning: How to Size Your DatabaseSQL/JSON Data Model and JSON in SQL: A PostgreSQL PerspectiveUnderstanding PostgreSQL TablespacesTop PostgreSQL Drivers for PythonPg_partman vs. Hypertables for Postgres PartitioningExplaining PostgreSQL EXPLAINGuide to PostgreSQL Database DesignHow PostgreSQL Data Aggregation WorksBuilding a Scalable DatabaseA Guide to pg_restore (and pg_restore Example)How to Index JSONB Columns in PostgreSQLWhat Is Audit Logging and How to Enable It in PostgreSQLOptimizing Array Queries With GIN Indexes in PostgreSQLHow to Reduce Bloat in Large PostgreSQL TablesGuide to PostgreSQL SecurityHow to Query JSON Metadata in PostgreSQLRecursive Query in SQL: What It Is, and How to Write OneNavigating Growing PostgreSQL Tables With Partitioning (and More)What Is a PostgreSQL Temporary View?How to Use PostgreSQL for Data TransformationHandling Large Objects in PostgresHow to Use Psycopg2: The PostgreSQL Adapter for PythonA Guide to Scaling PostgreSQLAWS Timestream for InfluxDB Alternative: When You Need to Look FurtherHow to Migrate from AWS Timestream to PostgreSQL: A Technical GuideHow to Choose a Database: A Decision Framework for Modern ApplicationsGuide to Postgres Data Management
Time-Series Database High Availability and Disaster RecoveryBest Practices for Scaling PostgreSQLHow to Store Video in PostgreSQL Using BYTEABest Practices for Postgres PerformanceHow to Design Your PostgreSQL Database: Two Schema ExamplesBest Practices for PostgreSQL Database OperationsHow to Manage Your Data With Data Retention PoliciesBest Practices for PostgreSQL Data AnalysisBest Practices for PostgreSQL AggregationBest Practices for Postgres Database ReplicationBest Practices for Postgres Data ManagementHow to Use a Common Table Expression (CTE) in SQLHow to Use PostgreSQL for Data NormalizationTesting Postgres Ingest: INSERT vs. Batch INSERT vs. COPYBest Practices for Postgres SecurityHow to Handle High-Cardinality Data in PostgreSQLPostgreSQL Compression: Every Option, When To Use Each, and What To Expect
The Best PostgreSQL Extensions for Analytics Workloads: A Field GuidePostgreSQL Extensions: amcheckPostgreSQL Extensions: Unlocking Multidimensional Points With Cube PostgreSQL Extensions: hstorePostgreSQL Extensions: ltreePostgreSQL Extensions: Secure Your Time-Series Data With pgcryptoPostgreSQL Extensions: pg_prewarmPostgreSQL Extensions: pgRoutingPostgreSQL Extensions: pg_stat_statementsPostgreSQL Extensions: Database Testing With pgTAPPostgreSQL Extensions: Install pg_trgm for Data MatchingPostgreSQL Extensions: PL/pgSQLPostgreSQL Extensions: Using PostGIS and Timescale for Advanced Geospatial InsightsPostgreSQL Extensions: Intro to uuid-osspTurning PostgreSQL Into a Vector Database With pgvector
What Is ClickHouse and How Does It Compare to PostgreSQL and TimescaleDB for Time Series?Timescale vs. Amazon RDS PostgreSQL: Up to 350x Faster Queries, 44 % Faster Ingest, 95 % Storage Savings for Time-Series DataWhat We Learned From Benchmarking Amazon Aurora PostgreSQL ServerlessTimescaleDB vs. Amazon Timestream: 6,000x Higher Inserts, 5-175x Faster Queries, 150-220x CheaperHow to Store Time-Series Data in MongoDB and Why That’s a Bad IdeaPostgreSQL + TimescaleDB: 1,000x Faster Queries, 90 % Data Compression, and Much MoreEye or the Tiger: Benchmarking Cassandra vs. TimescaleDB for Time-Series Data
The Best Databases for IoT in 2026: A Practical ComparisonMES Data Architecture: Modeling Work Orders, Genealogy, and Historian IntegrationMeter Data Management: Why AMI Interval Data Breaks Legacy MDM SystemsGeofencing and Driver Behavior Analytics: How to Store Both in One DatabaseWhich Database for a Digital Twin? Digital Twin Database Options ComparedGrid Modernization: Why the Data Layer Decides Whether It WorksFleet Telemetry Database: How to Store and Query Vehicle Sensor Data at ScaleUnderstanding IoT (Internet of Things)A Beginner’s Guide to IIoT and Industry 4.0DERMS Database: Solving the Single Source of DER Data ProblemForecasting the Physical World: Foundation Models for Predictive MaintenanceBuilding Energy Management System: The Data Layer Behind Energy Monitoring, Sub-Metering, and M&VSmart Building Analytics: Turning BMS Telemetry Into Occupancy, Energy, and HVAC InsightEV Charging Load ManagementBuilding Management System Database: Architecture for BACnet, Modbus, and Smart Building Sensor Data at ScaleSmart Grid Data Platform: Architecting for SCADA, AMI, PMU, and DERMS Data at ScaleDigital Twin Architecture: The Database and Data Model Behind a Digital TwinCAN Bus Data Logger: Decoding DBC and J1939 Signals into PostgresPredictive Maintenance Database Architecture: Storing and Querying Sensor Data for Failure PredictionPhysical AI Telemetry: Database Architecture for Autonomous-Vehicle FleetsPlant Historian: What It Captures and Where the Analytics Layer BeginsManufacturing Analytics Database: Architecture for Real-Time Production DataRobot Fleet Telemetry: Database Architecture for AMR, Industrial Robot, and Service Robot DataData Center Monitoring: What Database Stores Your Telemetry?EV Charging Management System: Architecture, OCPP Data, and the Right DatabaseIIoT Database Requirements: Six Things Your Database Must DoWater Utilities Database: How to Store and Query SCADA, AMI, and Quality Data at ScaleWhat Is an Edge Database? On-Device Storage, Sync Patterns, and Choosing the Right StackData Historian vs. Time-Series Database: How to Choose and When to SwitchWhat Is a Data Historian?How Hopthru Powers Real-Time Transit Analytics From a 1 TB TableStoring IoT Data: 8 Reasons Why You Should Use PostgreSQLHow to Simulate a Basic IoT Sensor Dataset on PostgreSQLFrom Ingest to Insights in Milliseconds: Everactive's Tech Transformation With TimescaleHow Ndustrial Is Providing Fast Real-Time Queries and Safely Storing Client Data With 97 % CompressionWhy You Should Use PostgreSQL for Industrial IoT Data Migrating a Low-Code IoT Platform Storing 20M Records/DayHow United Manufacturing Hub Is Introducing Open Source to ManufacturingBuilding IoT Pipelines for Faster Analytics With IoT CoreVisualizing IoT Data at Scale With Hopara and TimescaleDB
A Brief History of AI: How Did We Get Here, and What's Next?A Beginner’s Guide to Vector EmbeddingsPostgreSQL as a Vector Database: A Pgvector TutorialUsing Pgvector With PythonHow to Choose a Vector DatabaseVector Databases Are the Wrong AbstractionUnderstanding DiskANNA Guide to Cosine SimilarityStreaming DiskANN: How We Made PostgreSQL as Fast as Pinecone for Vector DataImplementing Cosine Similarity in PythonVector Database Basics: HNSWVector Database Options for AWSVector Store vs. Vector Database: Understanding the ConnectionPgvector vs. Pinecone: Vector Database Performance and Cost ComparisonHow to Build LLM Applications With Pgvector Vector Store in LangChainHow to Implement RAG With Amazon Bedrock and LangChainRAG Is More Than Just Vector SearchRefining Vector Search Queries With Time Filters in Pgvector: A TutorialUnderstanding Semantic SearchWhat Is Vector Search? Text-to-SQL: A Developer’s Zero-to-Hero GuideWhen Should You Use Full-Text Search vs. Vector Search?HNSW vs. DiskANNVector Search vs Semantic SearchBuilding AI Agents with Persistent Memory: A Unified Database ApproachNearest Neighbor Indexes: What Are IVFFlat Indexes in Pgvector and How Do They WorkPostgreSQL Hybrid Search Using Pgvector and CohereBuilding an AI Image Gallery With OpenAI CLIP, Claude Sonnet 3.5, and Pgvector
PostgreSQL as a Real-Time Analytics DatabaseTick Data and OHLC Candlesticks in PostgreSQLPostgreSQL OLTP: Transactions, Scale, and the Architecture That Makes It WorkUnderstanding OLAP: What It Is, How It Differs From OLTP, and Running It on PostgreSQLColumnar Databases vs. Row-Oriented Databases: Which to Choose?How to Choose an OLAP Database: A Practical Decision Guide (2026)Data Analytics vs. Real-Time Analytics: How to Pick Your Database (and Why It Should Be PostgreSQL)How to Choose a Real-Time Analytics DatabaseWhat Is the Best Database for Real-Time AnalyticsHow to Build an IoT Pipeline for Real-Time Analytics in PostgreSQL
Alternatives to RDSWhy Is RDS so Expensive? Understanding RDS Pricing and CostsEstimating RDS CostsHow to Migrate From AWS RDS for PostgreSQL to TimescaleAmazon Aurora vs. RDS: Understanding the Difference
5 InfluxDB Alternatives for Your Time-Series Data8 Reasons to Choose Timescale as Your InfluxDB Alternative InfluxQL, Flux, and SQL: Which Query Language Is Best? (With Cheatsheet)What InfluxDB Got WrongTimescaleDB vs. InfluxDB: Purpose Built Differently for Time-Series Data
5 Ways to Monitor Your PostgreSQL DatabaseHow to Migrate Your Data to Timescale (3 Ways)Postgres TOAST vs. Timescale CompressionBuilding Python Apps With PostgreSQL: A Developer's GuideData Visualization in PostgreSQL With Apache SupersetMore Time-Series Data Analysis, Fewer Lines of Code: Meet HyperfunctionsIs Postgres Partitioning Really That Hard? An Introduction To HypertablesPostgreSQL Materialized Views and Where to Find ThemTime-Series Downsampling: The Complete Guide to Tiered Data Resolution in SQLContinuous Aggregates: Incremental Materialized Views for Time-Series DataComplete Guide: Migrating from MongoDB to Tiger Data (Step-by-Step)Timescale Tips: Testing Your Chunk Size
Postgres cheat sheet
Tiger Data

Products

  • TimescaleDB
  • Tiger Cloud
  • TimescaleDB Enterprise
  • Postgres Search Stack

Industry

  • Data Centers
  • Energy & Utilities
  • Oilfield Services
  • Smart Manufacturing
  • Crypto

Support

  • Cloud Status
  • Support
  • Security
  • Terms of Service
  • Code Of Conduct

Learn

  • Documentation
  • Blog
  • Tutorials
  • Changelog
  • Success Stories

Company

  • About
  • Contact Us
  • Careers
  • Newsroom
  • Brand
  • Events

Products

  • TimescaleDB
  • Tiger Cloud
  • TimescaleDB Enterprise
  • Postgres Search Stack

Industry

  • Data Centers
  • Energy & Utilities
  • Oilfield Services
  • Smart Manufacturing
  • Crypto

Support

  • Cloud Status
  • Support
  • Security
  • Terms of Service
  • Code Of Conduct

Learn

  • Documentation
  • Blog
  • Tutorials
  • Changelog
  • Success Stories

Company

  • About
  • Contact Us
  • Careers
  • Newsroom
  • Brand
  • Events
Privacy preferencesLegalPrivacySitemap

Subscribe to the Tiger Data newsletter

Strategic Partner with Inductive Automation — Ignition

2026 (c) Timescale, Inc., d/b/a Tiger Data.
All rights reserved.

Tiger Data

2026 (c) Timescale, Inc., d/b/a Tiger Data.
All rights reserved.

Privacy preferencesLegalPrivacySitemap

By Tiger Data Team

Updated at Oct 23, 2026

Table of contents

    Tick Data and OHLC Candlesticks in PostgreSQL

    Tick Data and OHLC Candlesticks in PostgreSQL

    By Tiger Data Team

    Updated at Oct 23, 2026

    What is tick data?

    Tick data is the record of every individual market event for an instrument, typically each trade (price, size, timestamp) and each quote change (bid and ask), stored at the finest granularity an exchange or feed publishes. Everything coarser, from one-minute bars to daily closes, is derived from it.

    Trade ticks record executions; quote ticks record changes to the bid and ask. Level 1 data carries the best bid, best ask and last trade, while Level 2 adds depth across multiple price levels. For developers, tick data is the raw material for every bar, indicator and backtest, and it arrives as an append-heavy, time-ordered stream.

    What are OHLC and OHLCV?

    OHLC stands for open, high, low, close: the first, highest, lowest and last price in a fixed time interval. OHLCV adds the volume traded in that interval. A candlestick is the usual chart rendering of one OHLC row. Most "OHLC data" you download or query is a time-bucketed aggregate of tick data.

    To read a candle, the body spans open to close, the wicks reach to the low and high, and the color or fill shows whether price rose or fell. The mapping from ticks to a bar is mechanical:

    Bar field

    Computed from the ticks in the interval

    Open

    First price

    High

    Maximum price

    Low

    Minimum price

    Close

    Last price

    Volume

    Sum of trade size

    Time bars group ticks by clock interval, such as one minute. Tick bars group by a fixed number of trades, such as every 500. This guide builds time bars; tick-count bars need a window function to number trades per symbol first, which time_bucket does not do.

    Why tick data is hard on a database

    A tick data database has to absorb a constant write stream and still answer time-range queries quickly. Plain PostgreSQL handles modest tick volumes well. The trouble starts as tables grow, indexes bloat, and aggregation queries scan more data than they need. The constraints:

    • Sustained write rates during market hours, with bursts at the open and on news

    • Row counts that grow into the billions

    • Time-ordered queries, almost always filtered by symbol and time range

    • Late and out-of-order arrivals from feeds and reconnects

    • High symbol cardinality

    • Different retention needs for raw ticks and derived bars

    This guide uses three tools for these tradeoffs: hypertables for time-based partitioning, continuous aggregates for pre-aggregation, and the columnstore for compression. Tiger Data builds this tooling, so the examples use it; the final section covers when plain PostgreSQL or another system fits better.

    How to store tick data in PostgreSQL

    Create a Tiger Cloud service and define a hypertable with tsdb.hypertable in CREATE TABLE ... WITH, declaring columnstore settings up front.

    CREATE TABLE crypto_ticks ( "time" TIMESTAMPTZ NOT NULL, symbol TEXT NOT NULL, price DOUBLE PRECISION, size DOUBLE PRECISION ) WITH ( tsdb.hypertable, tsdb.segmentby = 'symbol', tsdb.orderby = 'time DESC' ); CREATE INDEX ON crypto_ticks (symbol, "time" DESC);

    The time column is a TIMESTAMPTZ and becomes the partition column automatically, since it is the first timestamp column. size is the quantity traded in a single trade. The Tiger Data tutorial dataset carries a cumulative day_volume column instead, but a running total is not what you want to sum into candle volume, so this guide uses per-trade size.

    tsdb.segmentby = 'symbol' keeps each instrument's rows together when data is compressed, which helps symbol-filtered scans. tsdb.orderby = 'time DESC' matches the dominant query shape, newest first.

    Choose data types deliberately. DOUBLE PRECISION is fast and compact but inexact. NUMERIC is exact but slower and larger. Many teams store integer ticks or scaled integer prices when they need exchange-grade accuracy.

    A hypertable gets a default descending index on time. The extra (symbol, "time" DESC) index speeds per-instrument lookups on recent, uncompressed chunks. Chunks default to a 7-day interval; the hypertable CREATE TABLE reference covers tuning. Reference data stays in an ordinary relational table. Define a small crypto_assets lookup of display names to join against later:

    CREATE TABLE crypto_assets ( symbol TEXT PRIMARY KEY, name TEXT NOT NULL );

    For ingestion, batch inserts or COPY give the best throughput, and the asyncpg guide shows the Python pattern for tick data. For a full dataset walkthrough, see the tutorial on ingesting real-time financial data.

    How to turn ticks into OHLC candlesticks in SQL

    Core TimescaleDB: time_bucket with first() and last()

    For candlestick chart SQL without the Toolkit extension, this is the baseline:

    SELECT time_bucket('1 hour', "time") AS bucket, symbol, first(price, "time") AS open, max(price) AS high, min(price) AS low, last(price, "time") AS close, sum(size) AS volume FROM crypto_ticks WHERE "time" > now() - INTERVAL '1 day' GROUP BY bucket, symbol ORDER BY bucket, symbol;

    first() and last() take a second argument because they order by the column you pass, not by physical row order. Rows can arrive out of order, so "the first row seen" is not "the earliest trade," and naive approaches get it wrong.

    By comparison, date_trunc handles fixed calendar units only. PostgreSQL 14 and later adds date_bin for fixed widths such as 5 or 15 minutes, while time_bucket also handles months and time zones. Window-function candle logic works but is more verbose and harder to optimize.

    For volume, sum per-trade size as above. A cumulative figure like day_volume needs different handling: last(day_volume, "time") - first(day_volume, "time") misses the first trade in the bucket and breaks when the counter resets at the session boundary. If your feed only provides cumulative volume, difference consecutive rows first, then sum.

    Intervals with no trades produce no row, which leaves holes in a chart. Use time_bucket_gapfill with locf to carry the previous close forward:

    SELECT time_bucket_gapfill('5 minutes', "time") AS bucket, locf(last(price, "time")) AS close, COALESCE(sum(size), 0) AS volume FROM crypto_ticks WHERE symbol = 'BTC/USD' AND "time" >= now() - INTERVAL '1 hour' AND "time" < now() GROUP BY bucket ORDER BY bucket;

    Gapfill needs a bounded time range in the WHERE clause. The advanced analytic queries docs cover gapfill and interpolation in more depth.

    The candlestick_agg() hyperfunction

    For any candlestick PostgreSQL workload, candlestick_agg() is the cleaner path. One aggregate returns the open, high, low, close and volume together, and accessors pull out each piece:

    SELECT time_bucket('1 hour', "time") AS bucket, symbol, open(candlestick_agg("time", price, size)) AS open, high(candlestick_agg("time", price, size)) AS high, low(candlestick_agg("time", price, size)) AS low, close(candlestick_agg("time", price, size)) AS close, volume(candlestick_agg("time", price, size)) AS volume, open_time(candlestick_agg("time", price, size)) AS open_time, high_time(candlestick_agg("time", price, size)) AS high_time FROM crypto_ticks WHERE "time" > now() - INTERVAL '1 day' GROUP BY bucket, symbol ORDER BY bucket, symbol;

    The arguments are the timestamp, the price and the per-trade volume, and the function stores the (timestamp, value) pair behind each price. That is why it can report when the high and low occurred (high_time, low_time), compute a volume-weighted average price with vwap(), and, most importantly, be rolled up. The candlestick_agg reference lists every accessor.

    These functions are part of the Toolkit extension. Tiger Cloud includes all hyperfunctions by default, per the docs, so no install step is needed; on self-hosted databases, install the TimescaleDB Toolkit extension first. candlestick_agg(), vwap() and candlestick() have been available since Toolkit 1.14.0. If you ingest pre-built bars instead of ticks, candlestick() converts open, high, low, close and volume columns into the same aggregate form. More in the hyperfunctions guide and hyperfunctions docs.

    Multi-timeframe candles with continuous aggregates

    Recomputing 1-minute, 1-hour and 1-day candles from raw ticks on every dashboard load scans far more data than needed. A continuous aggregate is an incrementally refreshed materialized view that updates only the time buckets that changed. See the continuous aggregates documentation for the full model and why continuous aggregates beat materialized views for background. Pre-aggregation moves work out of the query path, so measure the effect on your own data.

    Here is a 1-minute candle view using the plain first/max/min/last shape. A continuous aggregate requires time_bucket():

    CREATE MATERIALIZED VIEW one_min_candle WITH (timescaledb.continuous) AS SELECT time_bucket('1 minute', "time") AS bucket, symbol, first(price, "time") AS open, max(price) AS high, min(price) AS low, last(price, "time") AS close, sum(size) AS volume FROM crypto_ticks GROUP BY bucket, symbol; SELECT add_continuous_aggregate_policy('one_min_candle', start_offset => INTERVAL '1 day', end_offset => INTERVAL '1 minute', schedule_interval => INTERVAL '1 minute');

    The offsets are example values; the same pattern appears in the Tiger Cloud essentials walkthrough. start_offset and end_offset define the refresh window relative to when the policy runs. Ticks that arrive late but inside that window are picked up on the next refresh, while data older than start_offset needs a manual refresh_continuous_aggregate call. A bucket still open at end_offset is not materialized.

    That matters for charts, because the latest candle is the one users watch. Real-time aggregation combines materialized buckets with the newest raw data so it stays current. In TimescaleDB 2.13 and later it is off by default, so enable it explicitly:

    ALTER MATERIALIZED VIEW one_min_candle SET (timescaledb.materialized_only = false);

    The real-time aggregates docs explain the tradeoff.

    The plain view works, but a daily first over rows that are already aggregates needs care. candlestick_agg() handles that case. Build the 1-minute base with it, then stack coarser views with rollup():

    CREATE MATERIALIZED VIEW candlestick_1m WITH (timescaledb.continuous) AS SELECT time_bucket('1 minute', "time") AS ts, symbol, candlestick_agg("time", price, size) AS candlestick FROM crypto_ticks GROUP BY ts, symbol; -- Hourly candles stacked on the minute view (hierarchical continuous aggregate) CREATE MATERIALIZED VIEW candlestick_1h WITH (timescaledb.continuous) AS SELECT time_bucket('1 hour', ts) AS ts, symbol, rollup(candlestick) AS candlestick FROM candlestick_1m GROUP BY 1, 2; -- Daily OHLC and volume-weighted average price, rolled up at query time SELECT time_bucket('1 day', ts) AS day, symbol, open(rollup(candlestick)) AS open, high(rollup(candlestick)) AS high, low(rollup(candlestick)) AS low, close(rollup(candlestick)) AS close, vwap(rollup(candlestick)) AS vwap FROM candlestick_1h WHERE symbol = 'BTC/USD' AND ts > now() - INTERVAL '1 month' GROUP BY day, symbol ORDER BY day;

    Add refresh policies to candlestick_1m and candlestick_1h as above. Rolling up works because candles compose: a high is the maximum of the highs, a low the minimum of the lows, the open the earliest open and the close the latest close, and the stored timestamps tell rollup() which is which. The hierarchical continuous aggregates docs cover the stacking rules, including bucket-width requirements.

    Compressing and retaining tick data

    Raw ticks are the largest table and the least queried once candles exist, so the usual pattern is to compress older raw data and keep candles longer. Details are in the hypercore overview and the columnstore setup guide.

    A hypertable created with CREATE TABLE ... WITH (tsdb.hypertable) already gets a default columnstore policy that converts chunks after one chunk interval, 7 days by default. To choose your own threshold, replace the policy:

    CALL remove_columnstore_policy('crypto_ticks'); CALL add_columnstore_policy('crypto_ticks', after => INTERVAL '3 days'); SELECT pg_size_pretty(before_compression_total_bytes) AS before, pg_size_pretty(after_compression_total_bytes) AS after FROM hypertable_columnstore_stats('crypto_ticks');

    On compression numbers, the Tiger Docs state that converting data to the columnstore compresses it by more than 90% in typical cases, and by up to 98%. The docs' hypertable_columnstore_stats example shows 194 MB before and 24 MB after, but that is sample output from a tutorial dataset, not an expectation. Results depend on how repetitive and ordered your data is, so run the stats query on your own data before planning capacity.

    Retention is the other half. A retention policy drops raw chunks after N days while continuous aggregates keep the candle history:

    SELECT add_retention_policy('crypto_ticks', INTERVAL '90 days');

    Keep the retention interval longer than the continuous aggregate refresh window, or a refresh can drop aggregate rows whose source ticks are gone. The docs explain this in data retention with continuous aggregates, and the data lifecycle overview shows where retention fits.

    The crypto trading platform Pintu described its setup in a Tiger Data case study. According to that post, Pintu inserts about five million rows every 30 minutes and reports queries of around 100 ms against a raw table of roughly 1.4 billion rows, with around one billion rows deleted per day across the raw table and its seven continuous aggregates. These are Pintu's figures for its own workload, not a benchmark.

    Querying candlesticks and charting them

    Reading candles back out is an ordinary query: filter by symbol and time range, order by bucket, and limit to the latest N.

    SELECT bucket, open, high, low, close, volume FROM one_min_candle WHERE symbol = 'BTC/USD' AND bucket > now() - INTERVAL '6 hours' ORDER BY bucket DESC LIMIT 100;

    For the single latest candle per symbol, with a display name from a metadata table:

    SELECT DISTINCT ON (c.symbol) c.symbol, a.name, c.bucket, c.open, c.high, c.low, c.close, c.volume FROM one_min_candle c JOIN crypto_assets a ON a.symbol = c.symbol ORDER BY c.symbol, c.bucket DESC;

    Grafana's candlestick panel reads open, high, low, close and volume columns straight from a Postgres data source. The Grafana tutorial for financial tick data has the step-by-step setup, and here's the video that walks through the pipeline:

    Any client that reads Postgres, such as pandas, can pull the same view and pass it to Plotly or a JavaScript chart library. For a larger dataset, see the S&P 500 stock data tutorial.

    When PostgreSQL is enough, and when to look elsewhere

    PostgreSQL on Tiger Cloud tends to fit teams that want SQL, joins to reference data, and one operational database for ticks, candles and application data. It may not fit ultra-low-latency, in-memory order book processing, sub-microsecond capture at exchange co-location scale, or teams that only need a licensed historical feed. Those cases usually call for a specialized system or a data vendor.

    Common ways in: load CSV tick files with COPY, convert an existing Postgres tick table with create_hypertable() (the reference warns that migrating data in place can lock a large table for a long time), or replay from a feed handler. The Tiger Docs migration approach guide helps you pick a path for your source. If you are evaluating options, the time-series database comparison covers the landscape, and the guide to PostgreSQL compression options goes deeper on storage.

    Decision framework

    • Choose Tiger Cloud (PostgreSQL), or self-hosted TimescaleDB with the Toolkit extension, if you need SQL and joins across ticks, candles and reference data, want continuous aggregates and candlestick_agg() for multi-timeframe bars, and your ingest is high but not exchange-colocation extreme.

    • Choose plain PostgreSQL if your volume is modest, such as a few symbols at low frequency, and an indexed table with date_trunc or date_bin aggregation is fast enough today.

    • Choose a specialized low-latency system if you need in-memory, microsecond-scale processing for live order book logic, with SQL analytics secondary.

    • Choose a data vendor feed if you need licensed historical exchange data and no storage of your own.

    To try the pattern end to end, create a Tiger Cloud service and load the sample crypto tick dataset from the financial data tutorial.

    FAQ

    What does OHLC stand for?
    Open, high, low, close: the first, highest, lowest and last price in a time interval. OHLCV adds the volume traded in that interval.
    What is OHLCV?
    OHLC plus traded volume for the interval. It is the standard column set for candlestick tables and charting libraries.
    How do I get OHLC data from tick data in SQL?
    Group ticks into time buckets and take the first, max, min and last price per bucket. Use time_bucket() with first() and last(), or candlestick_agg() to get all four values from one aggregate.
    How do you store tick data in PostgreSQL?
    Use a time-partitioned table (a hypertable) with time, symbol, price and size columns, segmented by symbol and ordered by time. Compress older chunks with the columnstore and keep derived candles in continuous aggregates.
    How do you create candlestick data in PostgreSQL?
    Aggregate ticks with time_bucket into open, high, low, close and volume columns, then materialize them in a continuous aggregate so candles refresh incrementally. Use candlestick_agg() and rollup() when you need multiple timeframes from one base view.
    What is the difference between tick data and OHLC data?
    Tick data is every individual trade or quote. OHLC is a summary of those events per interval. OHLC is smaller and faster to chart, but you cannot turn it back into ticks.
    What are ticks in trading?
    A tick is one recorded market event, usually a trade or a bid/ask change, with price, size and timestamp. Tick size is a separate concept: the minimum price increment for an instrument.
    What is L1, L2 and L3 market data?
    Level 1 is the best bid, best ask and last trade. Level 2 adds multiple price levels of depth. Level 3 adds order-level detail, and the exact definition varies by venue.
    How much storage does tick data need, and how do you compress it?
    Storage depends on symbol count, update rate and column types. Columnstore compression on older chunks reduces it substantially; the Tiger Docs report savings of more than 90% in typical cases and up to 98%, and results vary by dataset.
    How do you build candles every N ticks instead of every N minutes?
    Time bars use time_bucket. For tick-count bars, number the rows per symbol with a window function such as row_number(), integer-divide by N, then apply the same first, max, min and last aggregation. time_bucket does not handle this natively.
    How do you fill gaps when no trades occur in an interval?
    Use time_bucket_gapfill with locf to carry the previous close forward. Decide whether flat candles should show zero volume.
    Can I chart candlesticks from PostgreSQL in Grafana?
    Yes. Grafana's candlestick panel reads open, high, low, close and volume columns from a Postgres data source. The Tiger Data docs include a step-by-step tutorial.