I think of Iceberg as a way to work with data that already lives in a lake, and Postgres as a familiar way to manage and query that data without moving it into Postgres. These examples cover Iceberg’s metadata, loading and analyzing NYC taxi data, the value of hiding implementation complexity behind a simple experience, and the release of pg_lake. They connect to iceberg table architecture, accessing data lake files, and pg lake and iceberg.
I described a data lake as data sitting in files on S3 in formats like CSV, JSON, or Parquet.
In an oversimplified explanation, I described Iceberg as extra metadata that allows you to operate more efficiently over collections of parquet files.
I described the Parquet files in this data-lake setup as already compressed and partitioned.
I described Iceberg as a versioned set of Parquet files that can be combined together with changesets, deletes, inserts.
I demonstrated creating an initial NYC taxi Iceberg table with CREATE TABLE trips_yellow () USING iceberg WITH (load_from = 'https://t.co/03KjDNLjsr');.
I demonstrated loading more data into the table with COPY trips_yellow from 'https://t.co/feHebNfKzI';.
I used a Postgres DO block to iterate over months from 2024-02-01 through 2024-08-31 at an interval of 1 month, formatting each month as YYYY-MM and executing a COPY for it.
I said that the monthly process loaded months of NYC taxi data in a matter of a couple minutes, ready to query and analyze.
I claimed that analytical queries would be up to 70x faster than queries in standard Postgres tables.
I described Crunchy Data Warehouse as one of the most full feature data systems to work with and manage Iceberg.
I said we're not moving the data into Postgres; we're loading data into Iceberg and teaching Postgres how to natively work with it and query it.
As we walked through the experience, its simplicity led to the assumption that it wasn't doing anything crazy under the hood.
I showed the complexity behind the simple experience and emphasized that none of that ever has to bubble up to you.
My colleague Utku put the design principle this way: “Simplicity isn’t a trick, it’s just good design.”
I announced the release of pg_lake, which enables users to manage Iceberg tables directly in Postgres, query raw data files in a data lake, and flexibly import and export data.
Related: transactional iceberg ingestion, pg lake and iceberg, postgres and iceberg