<div dir="ltr">Hi,<div><br></div><div>I just updated postgresql 13 and pg 14 (running on the D-drive under Windows 10 64 bits) from 3.14 to 3.2.0. (in order to install 3.2, I had to first remove 3.1.4 - then I installed 3.2.0 using Stackbuilder run as administrator).</div><div><br></div><div>When running "create extension postgis;" in pgAdmin, I get as expected a message that extension postgis already exists. But it actually does not exist/start up - if I run e.g. "select postgis_full_version();", it returns</div><div><br clear="all"><div><span style="font-family:"Source Code Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12.95px;white-space:pre-wrap">ERROR:  could not access file "$libdir/postgis-3": No such file or directory
CONTEXT:  SQL statement "SELECT public.postgis_lib_version()"
PL/pgSQL function postgis_full_version() line 26 at SQL statement
SQL state: 58P01</span><br></div><div><span style="font-family:"Source Code Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12.95px;white-space:pre-wrap"><br></span></div><div><font face="Source Code Pro, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"><span style="font-size:12.95px;white-space:pre-wrap">If I run "</span></font>ALTER EXTENSION postgis  UPDATE TO "3.2.0"; "  I get a similar message:</div><div><span style="font-family:"Source Code Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12.95px;white-space:pre-wrap">ERROR:  could not access file "$libdir/postgis-3": No such file or directory
CONTEXT:  PL/pgSQL function _postgis_drop_function_if_needed(text,text) line 6 at FOR over SELECT rows
SQL state: 58P01</span><br></div><div><br></div>I can force the issue by dropping the postgis extension and recreate it, but then I have to use drop extension postgis cascade and that command will wipe out the geometry fields in the database (dropping ext postgis on the template postgres db work fine, but that db does not have any geometry fields).</div><div><br></div><div>I have tried to re-start pg, reboot the machine, and googling the issue, to no avail.</div><div><br></div><div>I can see that postgis 3.2.0 has been installed:</div><div>D:\Program Files\PostgreSQL\13\share\contrib\postgis-3.2<br></div><div><br></div><div>I see the error message states it cannot find postgis-3  - but there IS no such file or directory, as you can see the directory is actually called postgis-3.2 . But I don't know if that's a bug or what...</div><div><br></div><div>Any suggestions - or will I have to dump all my databases and then re-install pg 13 and pg14 afresh?</div><div><br></div><div>Best regards</div><div>Calle<br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">


</div></div></div></div></div></div></div><div><br></div></div>