{{{
from django.contrib.gis.db.models.aggregates import Union
geom =
instance.location_characteristic.all().aggregate(union=Union('geom'))
}}}
{{{
django.db.utils.NotSupportedError: A stored procedure tried to use
deprecated C function 'pgis_geometry_union_finalfn'
DETAIL: Library function 'pgis_geometry_union_finalfn' was deprecated in
PostGIS 3.3.0
HINT: Consider running: SELECT postgis_extensions_upgrade()
}}}
Even downgrading to the last postis version
{{{
ALTER EXTENSION postgis UPDATE TO '3.2.3';
}}}
doesn't seem to solve the issue...
--
Ticket URL: <https://code.djangoproject.com/ticket/34096>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
* severity: Release blocker => Normal
Comment:
Thanks for the report, however it's not an issue in Django but in
upgrading the local PostGIS version.
--
Ticket URL: <https://code.djangoproject.com/ticket/34096#comment:1>
Comment (by spechtx):
Luckily, you are very right :-)
For anyone coming across this via search, I was able to resolve the issue
with
{{{
SELECT postgis_extensions_upgrade();
}}}
on the database
thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/34096#comment:2>