PostgreSQL 19Dev & Eng

Content type: Hands-on

5 min read

PostgreSQL 19 gains support in pglayers, with 62 extensions in ready-made Docker images

Article · Dev & Eng
Reading
5 min
Tables
1
Code
4
In short

The pglayers project now supports PostgreSQL 19 with 62 extensions in ready-made Docker layers, including pgvector, PostGIS, and pg_cron, but seven extensions in the catalog have not yet reached this version.

What pglayers is and why it matters

The official PostgreSQL image on Docker Hub ships the database clean, with no extensions. Anyone who needs pgvector, PostGIS, or pg_cron typically writes a Dockerfile that installs package repositories, build tools, and compiles each extension while building the image. This works, but every PostgreSQL version upgrade turns into a cycle of adjusting compilation flags and testing that nothing broke.

The pglayers project, maintained by Ismaël Mejía, tackles this problem by publishing each extension as a small, independent Docker layer that can be copied onto the official postgres image or used in ready-made profiles that already configure extension paths, preloaded libraries, and startup parameters. Instead of maintaining the build environment for each extension, the team just picks which ones to use.

In the announcement published on November 25, 2026, on Planet PostgreSQL, Mejía confirms that PostgreSQL 19 is now supported in pglayers, with images built on top of the official postgres:19 and builds for amd64 and arm64.

62 ready-made extensions, no compiling required

The Full profile for PostgreSQL 19 brings together the 62 extensions currently available for this major version, covering six areas of use according to the catalog:

Expert views

What people are saying about it.

Vercel has enabled, via Vercel MCP, permission for agents to create virtual models, adjust routing, and set spending budgets in the AI Gateway without having to open the dashboard.

Carina Ferreirain an iMasters article · Read the article: Vercel MCP now lets AI agents configure the AI Gateway in natural language

JetBrains has confirmed that CVE-2026-114938, nicknamed Java4Shell, affects the JBR embedded in all its IDEs as well as the JDK running in production. There's a patch and a workaround, but they are separate fixes.

Bisneto Bragain an iMasters article · Read the article: Java4Shell vulnerability exposes JVM in production: here's how to fix it now

Kubernetes 1.38, expected on December 16, 2026, drops environment variables used in scripts, retires a legacy cgroup mechanism, and changes swap behavior. Here's what to review before upgrading your cluster.

Rafael Oliveirain an iMasters article · Read the article: Kubernetes 1.38 comes with changes that can break CI/CD and legacy nodes
  • AI and search: pgvector and pg_textsearch
  • Geospatial queries: PostGIS, pgRouting, and H3
  • Data lake access: pg_lake
  • Background work: pg_cron, pg_net, and pg_incremental
  • Application development: pgmq, temporal_tables, and PLV8
  • Data protection and observability: PostgreSQL Anonymizer, pgAudit, and pg_stat_monitor

Spinning up the full profile is a single command:

docker run -d --name pglayers-pg19 \
  -e POSTGRES_PASSWORD=change-me \
  -p 127.0.0.1:5432:5432 \
  ghcr.io/pglayers/pglayers-full:19

With the container up, connecting is simple:

docker exec -it pglayers-pg19 psql -U postgres

And enabling an extension like pgvector becomes just one SQL statement:

sql
CREATE EXTENSION IF NOT EXISTS vector;
SELECT '[1,2,3]'::vector <-> '[4,5,6]'::vector AS distance;

The profile already leaves the server configured; it's up to the user to just run CREATE EXTENSION on each database. For those who don't want the whole profile, it's possible to build a smaller image with a Dockerfile that copies only the pgvector layer onto postgres:19 and adjusts extension_control_path and dynamic_library_path in postgresql.conf.sample, with no compilation happening during the build.

What PG19 still lacks, compared to PG17 and PG18

The pglayers catalog totals 84 extensions, but not every PostgreSQL major version receives all of them. Availability depends on upstream compatibility, published packages, and whether the extensions can run together. The difference is clear in the count published on November 20, 2026:

PostgreSQLIndividual layersFull profileAzure profile
19626224
18848331
17848331

Seven extensions in the catalog don't yet exist for PG19: age, documentdb, pg_duckdb, pg_failover_slots, rum, tds_fdw, and timescaledb. The reasons vary: some projects have compatibility changes in development or awaiting release; others still need compatible packages, container images, or supporting components.

In short: anyone relying on DocumentDB (the MongoDB-compatible gateway maintained by Microsoft) or TimescaleDB needs to stay on PG17 or PG18 for now; the pglayers-azure:19 image exists but doesn't include either of them.

It's also worth noting the case of pg_duckdb: in versions 17 and 18, the Full profile includes pg_duckdb and deliberately excludes pg_lake, because the two conflict with each other. In PG19 the situation is reversed, since pg_duckdb isn't yet available through pglayers' build path, so the Full profile brings pg_lake instead. Both remain available as individual layers for anyone who wants to assemble the combination manually.

Full means the broadest compatible collection for that PostgreSQL major, not a promise that every extension in the catalog can be loaded together.

Ismaël Mejía, maintainer of pglayers

The Azure profile is a development shortcut, not a mirror of the service

In addition to Full, there's the Azure profile, smaller and aligned with the extensions available in Azure Database for PostgreSQL Flexible Server:

docker run -d --name pglayers-azure-pg19 \
  ghcr.io/pglayers/pglayers-azure:19

In PG19 this profile brings 24 extensions, versus 31 in PG17 and PG18. It's useful for locally reproducing an environment similar to what runs in production on Microsoft's cloud before migrating, but the announcement itself is direct in saying that the profile is a convenience for local development, not an exact reproduction of the managed service. Extension versions, default configuration values, and platform-specific behavior may differ.

Tested beyond successful compilation

An extension compiling doesn't mean the extension works in production. According to the announcement, the PG19 release went through a battery of checks before the images were published:

  1. Self-sufficiency: each layer resolves its runtime dependencies on top of the bare PostgreSQL image
  2. Isolation between layers: one extension doesn't accidentally load another's bundled library
  3. Loading and functionality: extensions load and pass their own SQL integration tests
  4. Profile initialization: Full and Azure start up without warnings or errors
  5. Server health: tests detect backend and background worker crashes
  6. Multi-architecture builds: images published for amd64 and arm64
  7. Kubernetes integration: ImageVolume and CloudNativePG tests pass on PG19

This list matters because layer isolation resolves file conflicts, not logical conflicts between extensions that are inherently incompatible: checking the conflicts documentation is still necessary before stacking layers freely.

Switching the tag from :18 to :19 is not a database upgrade

The most relevant warning in the announcement, for anyone already running pglayers in production, is also the easiest to ignore: changing the image tag from :18 to :19 is not a data migration. It's a PostgreSQL major upgrade like any other, and needs to be treated as such, with a check that every extension in use exists in version 19, a backup before anything else, and a real upgrade procedure, whether pg_upgrade or dump and restore.

The smaller extension set in PG19 (62 versus 83-84 in PG17/18) is the practical point behind this caveat. Teams relying on timescaledb, documentdb, or pg_duckdb in production should wait for upstream support to arrive before moving their workload, rather than simply switching the image tag and assuming it will compile the same way.

Translated from the Brazilian Portuguese original · Read the original