July 1, 2026

Layer cake, but make it database drama

Show HN: Pglayers – PostgreSQL extensions as stackable Docker layers

Postgres users cheer the shortcut, then instantly start backseat-driving the packaging

TLDR: pglayers lets people build PostgreSQL database images by stacking ready-made add-ons instead of compiling everything manually. Commenters were into the idea, but quickly turned the thread into a mix of feature requests, usability nitpicks, and classic expert one-upmanship.

A new project called pglayers is promising to end one of developer life’s most annoying little chores: hunting down extra PostgreSQL features, installing them one by one, and wrestling with custom images just to get a database running the way you want. The pitch is deliciously simple even for non-experts: start with the official PostgreSQL container, then add pre-made extension “layers” like snapping toppings onto a pizza instead of cooking from scratch. Want mapping tools, scheduled jobs, or vector search? Copy them in, done.

And the community reaction was very internet. One camp showed up with instant heart-eyes: “I need exactly something like this!” That’s the purest compliment a tool can get on Hacker News — basically a standing ovation in hoodie form. But the backseat engineers arrived just as fast. One commenter immediately suggested the project needs a friendlier quick-start for Docker Desktop users and even threw in a mini branding critique: maybe buy a proper domain instead of leaning on a GitHub address. Ouch, but also… fair.

Then came the classic comment-thread power move: the advanced user who politely asks whether the creator knows about a newer built-in feature that may make this whole idea easier or at least more elegant. Translation: cool project, but have you considered the thing the pros are already debating? Another user skipped the meta talk and went straight to the wish list, asking for yet another extension. In other words, the crowd reaction is clear: people like this, but they also immediately want more, better docs, prettier packaging, and maybe a little less DIY chaos.

Key Points

  • Pglayers packages PostgreSQL extensions as minimal Docker layers that can be stacked onto official Postgres images without compiling from source.
  • The project offers both prebuilt images and a custom image-building workflow using `COPY --from` for individual extension layers.
  • Prebuilt profiles include `full` with 53 extensions and `azure` with 28 extensions intended for local development compatibility.
  • PostgreSQL 17 and 18 are marked stable, while PostgreSQL 19 support is experimental during beta.
  • The article lists multiple supported extensions, including pgvector, PostGIS, pg_cron, Apache AGE, pg_duckdb, pgaudit, and pg_graphql.

Hottest takes

"I need exactly something like this!" — hoppp
"maybe spend a few dollars on a pglayers domain name" — khurs
"Are you aware of extension_control_path?" — chatmasta
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.