Architecture
LakeSoul has three layers: clients at the top, one engine in the middle, and your storage at the bottom.
┌──────────────────────────────────────────────────────────────┐
│ psql · JDBC · BI tools Python SDK · Daft · Ray · Torch │
└───────────────┬──────────────────────────┬───────────────────┘
│ PG wire │ native IO / Arrow
┌───────────────▼──────────────────────────▼───────────────────┐
│ LakeSoul engine │
│ PostgreSQL front end · incremental SQL │
│ vector + full-text indexes · vectorized execution │
└───────────────────────────────┬──────────────────────────────┘
│
┌───────────────────────────────▼──────────────────────────────┐
│ object storage (S3 / OSS / HDFS) + PostgreSQL metadata │
└──────────────────────────────────────────────────────────────┘
Engine components
| Component | Responsibility |
|---|---|
| Catalog and commit protocol | Tables, namespaces, snapshots and atomic commits, stored in PostgreSQL |
| Native IO | Parquet, Vortex and Vortex Compact; merge-on-read for primary-key tables; object-store cache |
| Execution | DataFusion planning and vectorized execution, plus LakeSoul planner rules |
| PostgreSQL front end | Wire protocol, pg_catalog, DDL, DML, transactions, query sessions and limits |
| Federation and subscriptions | ADBC foreign tables and S3 external files; PostgreSQL logical replication and MySQL binlog subscriptions |
| Incremental SQL | Consumes the source commit log and writes only changed rows to the target |
| Vector and full-text indexes | IVF + RaBitQ and Tantivy BM25, maintained on write and pushed into the scan |
| Compaction | Disaggregated, size-tiered merge of delta files |
Two PostgreSQL roles
The name "PostgreSQL" appears twice, in different places:
- The metadata store. LakeSoul uses a PostgreSQL database for its catalog and commit records. This is infrastructure; users do not connect to it to query tables.
- The PostgreSQL endpoint.
postgres-lakesoulimplements the PostgreSQL wire protocol. It is the LakeSoul engine, not the metadata database.
Keep the two on separate ports in local setups. The quick start uses 5432 for
metadata and 5433 for the endpoint.
Compute and storage
- Storage is yours. Table data lives in your bucket, in open formats, with the commit metadata in PostgreSQL.
- Compute is stateless. A
postgres-lakesoulprocess can be restarted or replaced without moving data. With distributed workers configured, queries are planned across them and the same tables scale to a PB-scale cluster. - One snapshot. The PostgreSQL endpoint, the Python SDK and the connectors read the same committed snapshot. There is no second copy for search or AI.