[postgis-users] postgis.backend and legacy functions

Sandro Santilli strk at keybit.net
Thu Feb 25 00:01:50 PST 2016

On Wed, Feb 24, 2016 at 07:35:09PM +0100, Willy-Bas Loos wrote:

> leg=# select public.st_area(st_geomfromewkt('SRID=28992;POLYGON((100000


> leg=# select public.area(st_geomfromewkt('SRID=28992;POLYGON((100000
> *WARNING*:  'postgis.backend' is already set and cannot be changed until

The warning is triggered by the load of a second postgis library.

As you reported in your previous mail:

>  area(geometry) uses postgis-2.1
> and st_area(geometry) uses postgis-2.2

The best way to fix this would be to update the legacy functions
so to have them use postgis-2.2 too.

Sourcing the legacy.sql script from PostGIS-2.2 should be enough.


More information about the postgis-users mailing list