liveBook · Manning

PostgreSQL

As explained in Architecting an Apache Iceberg Lakehouse

PostgreSQL is an open-source object-relational database management system.

PostgreSQL serves as the operational database in a local lakehouse workflow. It holds transactional sales data before Apache Spark extracts, transforms, and loads that data into Apache Iceberg tables. section 3.2.2 section 3.6

  postgres: #1
    image: postgres:latest
    container_name: postgres
    environment:
      POSTGRES_DB: mydb
      POSTGRES_USER: myuser
      POSTGRES_PASSWORD: mypassword
    networks:
      lakehouse-net:
    ports:
      - "5435:5432"

Defines the PostgreSQL service with a database, credentials, shared lakehouse network, and host port mapping. section 3.2.2

The containerized setup provides:

Fashion sales source

A fashion retail dataset uses a fashion_sales table containing product, category, sales amount, sales date, store location, customer age group, and campaign fields. Sample rows represent sales from New York, Los Angeles, and Chicago. section 3.3.1 section 3.1

How Architecting an Apache Iceberg Lakehouse covers it

How deep it goes
Defines a Docker service, connection settings, shell access, table creation, and sample inserts, but not PostgreSQL internals.
Examples
Uses a fashion_sales table populated with five mock retail transactions across products, stores, customer groups, and campaigns.
What it assumes
Assumes Docker Compose and basic SQL familiarity while providing explicit credentials, shell access, schema, and insert statements.
What you can do after
Operate/configure a containerized PostgreSQL source, connect to it locally, and prepare sales data for lakehouse ingestion.
How it connects
Connects PostgreSQL with Docker Compose, Apache Spark, Apache Iceberg, Nessie, Dremio, MinIO, and Apache Superset.

Also explained in

Compare how 11 books explain PostgreSQL →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting an Apache Iceberg Lakehouse. The section links point to the parts of the book it draws on.