FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
PostGIS After pg_upgrade: Fixing Version Mismatches and Broken Functions
How-ToSystems

PostGIS After pg_upgrade: Fixing Version Mismatches and Broken Functions

via Dev.to TutorialPhilip McClarence2w ago

PostgreSQL major version upgrades via pg_upgrade are well-documented, well-tested, and generally smooth. But if you run PostGIS, there is a post-upgrade step that the documentation buries in a single sentence -- and skipping it breaks every spatial function in your database. What pg_upgrade Does (and Doesn't Do) pg_upgrade migrates the data directory: system catalogs, user tables, indexes, and extension metadata. It copies the catalog entry that says "PostGIS 3.4.0 is installed in this database" to the new cluster. What it does not do is install PostGIS 3.4.0 in the new cluster's library directory. The old .so files were compiled against PG 15's internal ABI. When PG 16 tries to load them, one of two things happens: The file doesn't exist. The new PG 16 installation has a clean lib/ directory. The catalog references $libdir/postgis-3 , but that file is only in PG 15's lib path. Error: could not access file "$libdir/postgis-3": No such file or directory . The file exists but is incompat

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
9 views

Related Articles

What You Need to Know About Building an Outdoor Sauna (2026)
How-To

What You Need to Know About Building an Outdoor Sauna (2026)

Wired • 1d ago

The Boring Skills That Make Developers Unstoppable in 2026
How-To

The Boring Skills That Make Developers Unstoppable in 2026

Medium Programming • 1d ago

I Installed This VS Code Extension… and My Code Got Instantly Better
How-To

I Installed This VS Code Extension… and My Code Got Instantly Better

Medium Programming • 1d ago

The Age of Personalized Software
How-To

The Age of Personalized Software

Medium Programming • 1d ago

Automating Checkout Add-On Recommendations in WordPress for WooCommerce
How-To

Automating Checkout Add-On Recommendations in WordPress for WooCommerce

Dev.to • 1d ago

Discover More Articles