Subscribe free
Morning Merge · Friday, November 20, 20263 min read

PostgreSQL 19 adds concurrent table repacking

Also: the AWS Emulator’s limits, longer Lambda runs, and Gemini tool loading

PostgreSQL 19 can reclaim space from busy tables while they stay in use. If you run Postgres, try the rewrite in staging on a table that's overdue for maintenance.

The main thing

An orange robot slides a stack of trays into a cabinet beside a conveyor.

PostgreSQL 19 makes table cleanup less disruptive. The feature I'd try first is REPACK (CONCURRENTLY), especially if there's a bloated table nobody wants to take offline. The PostgreSQL team shipped this release on November 19, 2026.

Updates and deletes leave unused space in a table. VACUUM FULL reclaims it and CLUSTER reorders rows to match an index, but both block access while they work. REPACK can do either job. Its concurrent mode lets reads and writes carry on during the rewrite.

If your app reads from a standby, there's another change for the staging checklist. A write can succeed on the primary and still be missing from the next read if the standby hasn't caught up.

WAIT FOR LSN lets the standby wait until it has replayed the write-ahead log through the position you specify. That gives you a choice beyond sending the read back to the primary. You still have to decide how long you're willing to wait.

There's also a smaller win hiding in the SQL: INSERT ... ON CONFLICT DO SELECT can return the existing row through RETURNING, so a get-or-create path doesn't need a separate lookup when the insert hits a conflict.

What to try first: repack a staging copy of a table that sees frequent updates. Put writes through it while it runs, watch application latency, and measure how much space comes back. Test the table you've been putting off, with the traffic that made you put it off.

Toolchain watch

An orange robot carries a metal die toward a press.

GitHub Actions makes Red Hat runners generally available. If you deploy on Red Hat Enterprise Linux, you can now build and test on RHEL 9 or RHEL 10 using a GitHub-hosted larger x64 runner. You need GitHub Team or Enterprise Cloud. Workflows already using the preview images don't need to change.

Ruff fixes an autofix that could produce invalid Python. Ruff 0.17.6 fixes the useless-finally rule when the try body is inline. It also fixes false positives when a collection is modified in a loop. If CI runs Ruff with fixes enabled, bump the pinned version to avoid that invalid output.

Closer to production

An orange robot loads a parcel into a model of a warehouse loading bay.

What the AWS Emulator can tell you. AWS says agents wrote its free local stand-in for more than 200 services. In an independent check reported by InfoQ, the emulator passed roughly 60 to 70 percent of fidelity tests for DynamoDB, S3 and SQS. Keep permission tests on AWS: the emulator doesn't evaluate IAM policies the same way.

Lambda gives on-demand Event Functions 30 minutes. That's up from 15 minutes for synchronous and asynchronous calls and event source mappings. If you split a transcoding job solely to fit the old timeout, you can revisit that design. Keep the split if you need the retry boundary.

Gemini can load tool schemas only when it needs them. In the Interactions API preview, the model still sees deferred tools' names and descriptions; the full parameters come in when it picks a tool. Google charges the normal token rates, so compare token counts on real requests before deferring your most-used tools.

Zerodha built a distributed blob store on SQLite. Its trading app saves everything from chart layouts to drawings as blobs, often overwriting the same keys. The team says the new sharded store handles thousands of reads and writes per second with single-digit millisecond latency on commodity hardware. Read the tradeoffs before assuming your blobs belong in object storage.

A staging test earns its keep when it looks like the workload you actually run.

← All Morning Merge issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →