Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How to Upgrade Postgres to 19 in Docker (and the 4 Errors I Hit on the Way)

Short answer: you can't upgrade Postgres in Docker by changing the image tag. postgres:19 refuses to start on a data directory from 17 or 18. You either dump the old cluster and restore it into a fresh 19 one (simple, needs downtime about as long as the restore), or you run pg_upgrade with both versions' binaries in one container (fast, a few more traps). For a database of a few GB, dump and…

You cannot upgrade PostgreSQL in Docker simply by changing the image tag. Instead, there are two methods to upgrade the database version: dump and restore, or using pg_upgrade with both versions' binaries in one container. For a smaller database, dump and restore is the recommended approach.

Stop the app before starting the upgrade process to ensure no writes are happening during the dump. Then, dump the old server with the new client and restore it into a fresh 19 cluster.

When using pg_upgrade in Docker, you need to provide both versions' binaries in one container. Building a small image with both versions allows you to upgrade the database faster, as pg_upgrade only hard-links the table files into the new cluster.

After the upgrade, check the version and settings of the database to ensure everything is working correctly. Additionally, reindex any full-text or GiST indexes after the upgrade, and be aware of any PostgreSQL 19 breaking changes that may affect your application.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Hunting Idunno.AntiCsrf (CVE-2026-131914) in Legacy ASP.NET Web Forms Apps

Mandiant has warned that CVE-2026-131914, an insecure deserialization bug in Idunno.AntiCsrf 0.9.1.0 (a.k.a. 0.9.1 Beta), is being exploited in the wild. Reports put it at CVSS 9.3.

  • Critical vulnerability CVE-2026-131914 in Idunno.AntiCsrf 0.9.1.0 actively exploited.
  • Legacy ASP.NET Web Forms apps require removal of affected AntiCsrfModule.
  • Replace with .NET anti-forgery mechanism, monitor for future incidents.

OSCP+ New Scoring System (Dec 1, 2026): PEN-200 Guide, Exam Cost in India & 90-Day Pass Strategy

Starting December 1, 2026 (08:00 GMT) , OffSec retires the flat 70/100 raw-point pass mark for the OSCP+ (PEN-200) exam and introduces equated scaled scoring (100–500 scale, passing score: 400) .

  • OffSec introduces new scaled scoring system for OSCP+ (PEN-200) exam on December 1, 2026.
  • Exam cost in India: approximately ₹1.61 lakh for package, ₹1.66 lakh for course + cert bundle.
  • 90-day pass strategy: keep enumerating until VPN connection drops, submit report even if borderline.

More from Wednesday 25 November →