<div dir="ltr">I am trying to upgrade a large postgres 9.6.6 database (10TB+) from postgis 2.4.1 to 2.5.3.<div>postgresql and all extensions have been built from source. Several years ago the same database had been upgraded from postgresql 9.4.x to postgresql 9.6.6 and postgis 2.3.x to postgis 2.4.1</div><div>When I run the '<font face="monospace" style="">ALTER EXTENSION postgis UPDATE TO "2.5.3";</font>' command, I am getting the following error:</div><div><br></div><div><font face="monospace">ERROR:  operator does not exist: gidx public.&& geography<br>LINE 1: SELECT $2 OPERATOR(public.&&) $1;<br>                  ^<br>HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.<br>QUERY:  SELECT $2 OPERATOR(public.&&) $1;</font></div><div><br></div><div>and when I run '<font face="monospace">select postgis_full_version();</font>', I get the following output:</div><div><br></div><div><font face="monospace">POSTGIS="2.4.1 r16012" PGSQL="94" (procs need upgrade for use with "96") GEOS="3.7.2-CAPI-1.11.2 b55d2125" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 2.2.2, released 2017/09/15" LIBXML="2.9.4<br>" LIBJSON="0.12.1" RASTER</font></div><div><br></div><div>Obviously the '

<font face="monospace">PGSQL="94" (procs need upgrade for use with "96")
</font>
' part indicates a problem. The database has run without any issues for several years, but I assume the postgis upgrade fails because of the underlying condition that causes the '

<font face="monospace">PGSQL="94"</font> 

' message.</div><div><br></div><div>Does  anybody know what is the fastest way to get the current postgis configuration into a good state so that the postgis upgrade can be completed without errors?</div><div><br></div><div>Kind Regards</div><div><br></div><div>THOR <br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>