I see a growing convergence between Postgres and analytics: developers want to bring transactional and analytical workloads together, while keeping a cohesive Postgres-facing experience.
I said Iceberg had fascinated me for a while and asked how it works with existing systems.
I asked how to deal with consistency across systems without introducing new found complexity.
I asked how Postgres and Iceberg work together in transactions.
I said that uniting Iceberg and Postgres lets me work with it seamlessly like I would a normal database.
CREATE TABLE measurements (station_name text, value double precision) USING iceberg;
INSERT INTO measurements VALUES ('Arsuz', 24.9), ('Haarlem', 13.4), ('Thessaloniki', 20.3);
VACUUM;
CREATE TABLE measurements_staging (like measurements);
INSERT INTO measurements_staging VALUES ('Charleston', 21.3);
WITH new_rows as (
DELETE FROM measurements_staging returning *
) INSERT INTO measurements SELECT * FROM new_rows;
Five years ago I joined @crunchydata, shortly after I wrote about having unfinished business with Postgres.
For the past five years we've focused on production ready Postgres, which I said is unique from most other database providers.
I said that increasingly a first class Postgres experience isn't complete without a seamless analytics experience.
I said our journey is continuing as part of @snowflake, and that we've built some amazing things but are just getting started.
I said nothing about our production ready Postgres focus changes today: me and the entire team are as laser focused as every on that, but now with an expanded mission of a unified data platform. This direction connects to postgres warehouse architecture.
I explained that adding new data creates smaller Parquet files that can then be recompacted so they are efficient again.
I said compaction makes individual inserts or small batches viable, although they are normally a big no-no for such systems.
I presented VACUUM; as the simple way to recompact data.
I demonstrated moving rows from a Postgres staging table to Iceberg in S3 with a transaction that deletes staging rows using RETURNING and inserts those rows into the destination.
I described the transactional approach as solid engineering to make building data systems easier.
I inserted three example measurements: Arsuz at 24.9, Haarlem at 13.4, and Thessaloniki at 20.3.
I inserted a Charleston measurement of 21.3 into the staging table in the transaction example.
At Data Council AI, I said it was awesome to see @marcoslot on stage talking about converged architectures of OLTP and OLAP.
A few weeks into using or presenting the technology, I said every time I demo it, it feels absolutely magical.
I described the development as the convergence of transactional and analytical data.
When we first shipped Crunchy Data Warehouse, it used Postgres standard heap tables for fast transactional and operational workloads and Iceberg tables, stored as columnar Parquet, for fast analytics.
I said customers could mix and match analytical workloads and move data from heap tables to Iceberg in a single transaction with a returning CTE.
I imagined ingesting data in real time and flushing it from heap tables to Iceberg every 5 minutes.
I said the initial mixed-workload approach was sort of HTAP, but concluded that no one really wants HTAP because users still had to think about modeling data and fitting it to their applications.
I concluded that customers wanted to ingest into Postgres and then have all or a selected subset of their Postgres tables available in an analytics form.
I said every large Crunchy Bridge customer was using a CDC tool, often Fivetran or Stitch Data, to feed a separate warehouse such as Redshift, Clickhouse, BigQuery, or Snowflake, and that they faced pains, overpayment, and complexity.
- I observed three customer problems with CDC and separate warehouses: CDC tools regularly caused production database outages; customers overpaid on their warehouses; and paying by row for CDC was painful.
After listening to customer feedback and learning where we were wrong, we shipped seamless replication from Postgres to Iceberg with Crunchy Data Warehouse.
I said the seamless replication approach avoids per-row payment and removes the need to decide how or when to roll up data with a scheduled job.
I said we still support the earlier HTAP experience with mixed transactions, alongside the simpler replication approach.
In a replication demonstration, after a couple of button clicks and about a minute, 100m rows synced from an operational database to the warehouse and were kept up to date with new transactions.
On 2024-05-30, I said the next release of Crunchy Bridge for Analytics was less than a month away.
I described the team's coming performance improvements as “mind blowing.”
I said a Postgres system that can easily mix transactional/analytical workloads really is possible.
I said developers look to tightly couple their Postgres database with Analytics engines.
I connected that market trend to Crunchy Data building Crunchy Bridge for Analytics, which allows Postgres to operate on data stored in Parquet and Iceberg.
I congratulated the PeerDB team, including @saisrirampur and @iskakaushik, on joining ClickHouse and said I was happy to see their successful outcome.
I said the trend of connecting Postgres and analytics was just getting started and that I looked forward to more development in the space.
I described Crunchy Data Warehouse as a best in class Iceberg platform with full transactional support.
I described its combination of transactions and analytics as using an adaptive query engine while presenting to the user as just Postgres.
I said the product combines Iceberg with a transactional database system in one unified experience, and that we had shipped it last month.
I said the combination of ease of use and power underneath was a game changer for data systems.
Related: postgres and iceberg, postgres analytics interoperability, transactional iceberg ingestion