<div dir="ltr">The implication is that for some reason the package you have includes an older version of postgis-3.so than it is advertising. And yet has SQL scripts for the latest version. <div><br></div><div>Maybe see if that bears out?</div><div><br></div><div>strings /usr/lib/postgresql/17/lib/postgis-3.so | grep "3.5"</div><div><br></div><div>Given that most packagers will have packaged 3.6 with PgSQL 18, not PgSQL 17, I can imagine a fat finger error happening potentially.</div><div><br></div><div>P.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Oct 21, 2025 at 9:38 AM Justin Pryzby <<a href="mailto:pryzby@telsasoft.com">pryzby@telsasoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">We got this error after applying debian OS updates:<br>
<br>
2025-10-21 10:37:20 upgrade postgresql-17-postgis-3-scripts:all 3.5.3+dfsg-1~exp1.pgdg120+1 3.6.0+dfsg-2.pgdg13+1<br>
<br>
ts=# \dx postgis<br>
Name | Version | Schema | Description<br>
---------+---------+--------+------------------------------------------------------------<br>
postgis | 3.5.3 | public | PostGIS geometry and geography spatial types and functions<br>
<br>
ts=# ALTER EXTENSION postgis UPDATE ;<br>
ERROR: could not find function "ST_CoverageClean" in file "/usr/lib/postgresql/17/lib/postgis-3.so"<br>
ts=# SELECT postgis_extensions_upgrade();<br>
NOTICE: Updating extension postgis 3.5.3<br>
ERROR: could not find function "ST_CoverageClean" in file "/usr/lib/postgresql/17/lib/postgis-3.so"<br>
CONTEXT: SQL statement "ALTER EXTENSION postgis UPDATE TO "ANY";ALTER EXTENSION postgis UPDATE TO "3.6.0""<br>
PL/pgSQL function postgis_extensions_upgrade(text) line 88 at EXECUTE<br>
<br>
ts=# SELECT * FROM pg_available_extensions WHERE name='postgis';<br>
name | default_version | installed_version | comment <br>
---------+-----------------+-------------------+------------------------------------------------------------<br>
postgis | 3.6.0 | 3.5.3 | PostGIS geometry and geography spatial types and functions<br>
<br>
ts=# SELECT * FROM pg_available_extension_versions WHERE name='postgis';<br>
name | version | installed | superuser | trusted | relocatable | schema | requires | comment <br>
---------+------------+-----------+-----------+---------+-------------+--------+----------+------------------------------------------------------------<br>
postgis | unpackaged | f | t | f | f | | | PostGIS geometry and geography spatial types and functions<br>
postgis | 3.6.0 | f | t | f | f | | | PostGIS geometry and geography spatial types and functions<br>
postgis | ANY | f | t | f | f | | | PostGIS geometry and geography spatial types and functions<br>
</blockquote></div>