PostgreSQL 19 in Your Dev Environment: Postgres.app 3.0, PGlite 0.6 in WASM, the Docker latest Trap, and Go ExtensionsThematic roundup · digest for November 26
Product still life with a Mac laptop, Docker container, and portable Postgres ecosystem modules
Thematic roundup4 sections≈ 5 min

PostgreSQL 19 in Your Dev Environment: Postgres.app 3.0, PGlite 0.6 in WASM, the Docker latest Trap, and Go Extensions

At first glance, trying out PostgreSQL 19.0 GA on your laptop seems like a two-minute job: update the app or pull the image and test the new features. In practice, you hit a strict database rule: the binary format of the PGDATA directory isn't compatible across major versions. One careless pull breaks your local setup, and familiar extensions may vanish from the base bundle. Here are four updates across macOS, WASM, Docker, and Go so you can move to v19 without surprises.

Postgres.app 3.0: Fast PostgreSQL 19 on macOS

On November 19, 2026, Postgres.app 3.0 shipped with PostgreSQL 19.0 and PostGIS 3.7.0. An updated GDAL (per RFC 108) dropped several old unmaintained raster and vector drivers, so test any rare geo formats ahead of time.

As before, there's a 19.0-only build and a full bundle with every active branch: 14.25 (PostGIS 3.2.10), 15.20 (3.3.10), 16.16 (3.4.6), 17.12 (3.5.6), 18.7 (3.6.3), and 19.0 (3.7.0). Keeping old and new clusters side by side makes migrations easy, though note that this is the final release supporting v14.

Settings and About moved into the main window, and the icon got a liquid glass refresh. More importantly, the developers removed background helper processes, making it a single unified app. On a laptop that's simpler—databases stay up as long as the app is open, even if macOS blocks background activity. On a home Mac mini, though, logging out stops all servers.

One more catch: six extensions were split out of the base package—pgRouting, address_standardizer, postgis_tiger_geocoder, PL/JS, PL Debugger, and wal2json. If your project relies on routing or logical replication, download them separately from the Postgres.app extensions page.

PGlite 0.6: PostgreSQL 19 in WebAssembly

If you don't want to install a system server or spin up containers just for automated tests, there's PGlite 0.6.0, released November 23, 2026. Inside is a full PostgreSQL 19.0 (commit c8695fb) compiled to WebAssembly (WASM) for the browser, Node.js, and Bun.

You can boot a v19 database in your test suite right after npm install @electric-sql/pglite@0.6.0:

import { PGlite } from '@electric-sql/pglite'

// Create an in-memory PostgreSQL 19 instance inside the process
const pg = new PGlite()
const res = await pg.query('SELECT version();')
console.log(res.rows[0])

No Docker daemon, no occupied ports, and no volume cleanup. The instance lives in process memory, runs queries, and vanishes after tests finish (disk and IndexedDB options are covered in the PGlite docs).

Still, the project remains alpha, and the 0.6.0 release notes are literally one line about moving to 19.0. If you already have saved databases from older PGlite versions, you can't just bump the package due to data format incompatibility. Per the PGlite upgrade guide, you'll need old and new versions side by side, dump with pgDump from @electric-sql/pglite-tools/pg_dump, run the SQL via pg.exec(), and explicitly restore SET SEARCH_PATH = public;.

Docker postgres:latest Switched to Version 19

The sneakiest trap waits in containers. On November 20, 2026, Docker's official images merged PR #22805: PostgreSQL 19 became 19.0 GA (trixie 19.0-1.pgdg13+1 and bookworm 19.0-1.pgdg12+1), v18 bumped to 18.7, and postgres:latest now points to version 19.

The failure mode is classic: run docker compose pull && docker compose up against an existing PostgreSQL 18 named volume, and the container crashes on startup with a PG_VERSION mismatch. Until you plan a migration with pg_dumpall or pg_upgrade, pin the version in docker-compose.yml:

services:
  db:
    # Pin v18 so an existing volume does not break
    image: postgres:18
    volumes:
      - pgdata:/var/lib/postgresql/data

That single line keeps your local environment and CI green. When you're ready to migrate, spin up a clean postgres:19 on a fresh volume and load a logical dump without touching your working v18 volume.

gopgext: PostgreSQL Extensions in Go via TinyGo

Following the mature Rust framework pgrx, Go now has its own tool: gopgext by Jesús Espino. Standard Go's runtime is too heavy to embed inside the DBMS process, so Espino uses TinyGo (a compact Go compiler, tested on 0.43.0) and Postgres's native PGXS build system (make + pg_config), reusing the pattern from his gokm Linux kernel module project.

Tag a Go function with //gopgext:function, and the generator builds the C glue .so, .control file, and CREATE FUNCTION SQL script:

package main

// Directive turns a Go function into a Postgres SQL function
//gopgext:function immutable parallel=safe
func Hello(name string) string {
    return "Hello, " + name + "!"
}

func main() {}

Standard library packages (fmt, strings, regexp, encoding/json, crypto/*), generics, defer/recover, iterators, and in-server SQL via SPI (Server Programming Interface) all work inside. Setup takes three commands:

# Scaffold, build the .so, and enable the extension
gopgext init hello
gopgext install hello
psql -c 'CREATE EXTENSION hello' -c "SELECT hello('world')"

It's too early for production, though. Right now it only runs on Linux x86-64 (requiring Go, TinyGo, PostgreSQL 14+ with headers and PGXS, make, a C compiler, and objcopy), and both the API and generated SQL can change without notice. The author warns clearly about its experimental status: extensions run inside the PostgreSQL process, so a bug in the wrapper or runtime can crash the server or corrupt data. Stick to C or pgrx for production, and use gopgext for local experiments.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 6