---
title: "How Physical Intelligence unified its robotics data stack with Postgres managed by ClickHouse"
description: "Physical Intelligence, a robotics foundation-model lab, split its data into raw petabyte-scale training data, transactional data needing ACID guarantees (under 100M rows), and high-cardinality metadata and annotations (10 to 100 billion rows)."
url: "https://swe.quest/articles/how-physical-intelligence-unified-its-robotics-data-stack-with-postgres-managed-31d6ee7aad1b24a5"
canonical: "https://clickhouse.com/blog/physical-intelligence-rds-to-clickhouse-managed-postgres"
source: "ClickHouse"
published: "2026-08-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 16
tags: ["analytics","postgres","data-pipelines","model-training"]
---

# How Physical Intelligence unified its robotics data stack with Postgres managed by ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-08-06, 16 min read, Case study. Original: [https://clickhouse.com/blog/physical-intelligence-rds-to-clickhouse-managed-postgres](https://clickhouse.com/blog/physical-intelligence-rds-to-clickhouse-managed-postgres)

## Summary

Physical Intelligence, a robotics foundation-model lab, split its data into raw petabyte-scale training data, transactional data needing ACID guarantees (under 100M rows), and high-cardinality metadata and annotations (10 to 100 billion rows). A single RDS Postgres instance full of JSONB columns could not handle both workloads, so the team moved to Postgres managed by ClickHouse, using ClickPipes to replicate operational data into ClickHouse for analytics. On the ClickHouse side, ReplacingMergeTree handles insert-heavy annotation writes, JSONB fields were flattened into sparse columnar tables, and materialized views cut query latency and database load. They also isolate read and write compute and put PgBouncer in front of batch jobs.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)

## Prerequisites

- OLTP vs OLAP ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

ClickHouse, ClickPipes, PostgreSQL, ReplacingMergeTree, PgBouncer, Amazon RDS, Physical Intelligence, π0.7

## Related posts

- [Scaling SaaS security: Reco’s migration from Postgres to ClickHouse Cloud](https://swe.quest/articles/scaling-saas-security-reco-s-migration-from-postgres-to-clickhouse-cloud-644c039f853be147.md): ClickHouse · 2025-11-17 · Medium · 6 min read · Analytics & OLAP, PostgreSQL, Stream processing, Performance engineering, Cost optimization
  Reco, a SaaS security platform ingesting 10-12 billion JSON events weekly, moved over 90% of its workload from Postgres to ClickHouse Cloud.
- [How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight](https://swe.quest/articles/how-we-migrated-clera-s-500-gb-production-database-to-clickhouse-managed-f4ed327a88d71cd7.md): ClickHouse · 2026-10-08 · Medium · 8 min read · PostgreSQL, Databases, Performance engineering, Schema migrations, Storage systems
  Clera moved a 500 GB, 500+ table production Postgres database from the EU to the US overnight onto ClickHouse Managed Postgres, with production traffic still running, using two parallel ClickPipes pipelines.
- [A universal interface: How QuintoAndar made ClickHouse plug-and-play with managed Postgres](https://swe.quest/articles/a-universal-interface-how-quintoandar-made-clickhouse-plug-and-play-with-ec413a5dd96fc04f.md): ClickHouse · 2026-08-27 · Easy · 6 min read · Analytics & OLAP, PostgreSQL, Data pipelines, System design
  QuintoAndar's customer data platform replaced a Lambda architecture (a Postgres hot layer plus Kafka Connect into a Delta landing zone processed by 24/7 Databricks jobs with costly MERGE INTO deduplication) by having its event gateway write about 900 million monthly events directly into ClickHouse Cloud, which also serves roughly 300 million API requests a month with sub-second reads.
- [How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners](https://swe.quest/articles/how-infinitas-learning-uses-clickhouse-managed-postgres-to-process-billions-of-eb20c949118daba4.md): ClickHouse · 2026-11-16 · Medium · 9 min read · Analytics & OLAP, PostgreSQL, Performance engineering, Caching, Databases
  Infinitas Learning runs transactional learner-result processing on Postgres, with PL/pgSQL functions serving as the API in place of an earlier Kafka/Flink event-sourced pipeline, and customer-facing analytics on ClickHouse.
- [How Kami scaled from 80M to nearly 2B events per week with ClickHouse](https://swe.quest/articles/how-kami-scaled-from-80m-to-nearly-2b-events-per-week-with-clickhouse-77ce1b06efbf532e.md): ClickHouse · 2025-05-16 · Medium · 7 min read · Analytics & OLAP, Data pipelines, PostgreSQL, Scaling, Schema migrations
  Kami's Postgres event tracking (Rails writing JSONB rows, queried via Redash) collapsed when COVID pushed weekly events from about 80M to nearly 2B.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
