PostgreSQL front end
postgres-lakesoul is the LakeSoul engine implementing the PostgreSQL wire
protocol. Point psql, JDBC, pgx or a BI tool at it and the statements execute
in the lakehouse engine over object storage.
This is not a PostgreSQL extension. There is no Postgres process executing the query, and no data is copied into Postgres heap tables. The metadata database is separate infrastructure.
Start it
cargo run -p postgres-lakesoul -- --port 5433 \
--warehouse-prefix file:///tmp/lakesoul/warehouse
See Quick start: the PostgreSQL endpoint for the metadata database and the first table.
What works
| Area | Support |
|---|---|
| Connectivity | PostgreSQL wire protocol, simple and extended query protocol, pg_catalog, psql \d |
| DDL | CREATE TABLE, DROP TABLE, CREATE INDEX for vector/text indexes, REINDEX TABLE, primary keys, PARTITIONED BY, WITH (...) options |
| Writes | INSERT ... VALUES (including RETURNING), INSERT ... SELECT, COPY ... FROM STDIN, UPDATE on non-CDC primary-key tables, DELETE (CDC tombstones, partition clears and rewrites), TRUNCATE (including PARTITION (...)), ON CONFLICT DO NOTHING, general ON CONFLICT ... DO UPDATE (partial columns, expressions and conflict WHERE) |
| Queries | The DataFusion SQL surface, including joins, aggregates, windows, CTEs and set operations |
| Search | pgvector-compatible vector operators, text_score for BM25 |
| Incremental SQL | INSERT ... SELECT maintains its target when the session enables it |
| Subscriptions | CREATE/DROP/ALTER SUBSCRIPTION replicates PostgreSQL logical replication or MySQL binlog changes into LakeSoul CDC tables, with managed snapshots, schema evolution and multi-table subscriptions |
| Detached queries | lakesoul_submit runs a long SELECT or INSERT ... SELECT outside the submitting connection; poll, fetch and cancel it by query id |
| Transactions | Autocommit and explicit blocks; READ COMMITTED; deferred publication for writes; failed-transaction recovery |
| Isolation | One database maps to one LakeSoul namespace; user tables live in public |
What does not
COPY ... TO a file, COPY ... FROM a file, CREATE TABLE AS,
CREATE TEMP TABLE, DELETE ... USING, non-READ COMMITTED isolation, and
writes inside a multi-statement simple-query batch are refused with SQLSTATE
0A000. Writes inside an explicit block use deferred publication; a non-CDC
DELETE rewrite and TRUNCATE are refused there in Phase 1. See the
compatibility matrix for the full list.