<div dir="ltr"><div dir="ltr">Thank you so much for your response, I appreciate it.<div><br></div><div>I omitted to mention that before I messaged I had tried to resolve this in the <span style="background-color:rgb(240,216,168);color:rgb(255,55,55);font-style:italic;font-weight:bold;font-family:Consolas;font-size:10pt;white-space:pre">pg_proc</span> table and ran the following query:<br><br><span style="padding:0px 0px 0px 2px"><span style="color:rgb(0,0,0);font-family:Consolas;font-size:10pt;white-space:pre"><span style="color:rgb(128,0,0);font-weight:bold">UPDATE</span> <span style="color:rgb(255,55,55);font-style:italic;font-weight:bold">pg_proc</span> <span style="color:rgb(128,0,0);font-weight:bold">SET</span> <span style="color:rgb(255,55,55);font-style:italic;font-weight:bold">probin</span> = <span style="color:rgb(0,128,0);font-weight:bold">'$libdir/postgis-3'</span> <span style="color:rgb(128,0,0);font-weight:bold">WHERE</span> <span style="color:rgb(255,55,55);font-style:italic;font-weight:bold">probin</span> = <span style="color:rgb(0,128,0);font-weight:bold">'$libdir/rtpostgis-2.5'</span><span style="color:rgb(255,0,0)">;</span></span></span><br><br></div><div>This was probably a mistake (not least that postgis-3 is not the raster library) and I am wondering if this is resolvable.</div><div><br></div><div>I have only just discovered the following documentation:</div><div><br></div><div><a href="https://postgis.net/documentation/tips/tip-upgrading-raster-from-2-3/">https://postgis.net/documentation/tips/tip-upgrading-raster-from-2-3/</a><br><br>Q1: And I am wondering if the <span class="gmail-n" style="box-sizing:inherit;color:rgb(95,95,95);font-family:"Liberation Mono",monospace;font-size:14px;letter-spacing:0.33px;white-space:pre;background-color:rgb(245,246,248)">postgis_extensions_upgrade</span><span class="gmail-p" style="box-sizing:inherit;color:rgb(95,95,95);font-family:"Liberation Mono",monospace;font-size:14px;letter-spacing:0.33px;white-space:pre;background-color:rgb(245,246,248)">()</span> mentioned in the upgrade instructions assumes one is starting from a particular state and I need to get back there from my mistake above or if this upgrade function will resolve things whatever the state.</div><div><br></div><div>Q2: Should I still run postgis_full_version() - is this function a benign query, unlike <span class="gmail-n" style="box-sizing:inherit;color:rgb(95,95,95);font-family:"Liberation Mono",monospace;font-size:14px;letter-spacing:0.33px;white-space:pre;background-color:rgb(245,246,248)">postgis_extensions_upgrade</span><span class="gmail-p" style="box-sizing:inherit;color:rgb(95,95,95);font-family:"Liberation Mono",monospace;font-size:14px;letter-spacing:0.33px;white-space:pre;background-color:rgb(245,246,248)">()</span> ?</div><div><br></div><div>Thanks,</div><div><br></div><div>Andrew</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 Jun 2024 at 08:08, Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrew, replies inline<br>
<br>
On Mon, Jun 24, 2024 at 05:38:50PM +0100, Andrew Hardy wrote:<br>
<br>
> We noticed some odd failures executing a SELECT on a table with a point<br>
> type column. The error was: 'could not access file "$libdir/postgis-2.5":<br>
> No such file or directory' .<br>
<br>
This means you have some left-over old PostGIS functions in your<br>
database, so the upgrade was not complete. What does the following<br>
query return ? <br>
<br>
SELECT postgis_full_version()<br>
<br>
--strk;<br>
</blockquote></div></div>