<div dir="ltr"><div>Hi,<br><br></div>I ran into a very strange problem today. It is especially strange to me because it was (temporarily) solved and i don't understand why.<br><div><div><br>The problem:<br></div><div>A dump from a (pg 9.4) database with postgis-2.1 and legacy.sql was restored on a server that has bot postgis-2.1 and postgis-2.2 installed.<br></div><div>Because pg_dump uses only CRATE EXTENSION, the new database now has postgis-2.2 but with the legacy functions from postgis-2.1<br><br></div><div>Now, i get an error when calling some functions. Other functions do work.<br></div><div>2016-02-24 10:28:52 CET [17136-10] postgres@telmee_oz ERROR:  attempt to redefine parameter "postgis.backend"<br>2016-02-24 10:28:52 CET [17136-11] postgres@telmee_oz STATEMENT:  select ST_area(survey.locations.the_geom) as opp<br>        FROM survey.locations LIMIT 1;<br></div><div><br>I didn't try out all the functions, because i was looking for a more general pattern.<br></div><div>Anyway i know:<br></div><div>working:<br></div><div>* area<br></div><div>not working:<br></div><div>* st_area<br></div><div>* st_xmin<br></div><div>* x_min<br><br></div><div>When i found that all the functions that use the postgis-1.2 binairies belong to legacy, i tried to install the legacy.sql form postgis-2.2 in the new database.<br></div><div>This resulted in a lot of  'attempt to redefine parameter "postgis.backend"' -errors (and some newly installed functions), but after this, the problem was gone.<br><br></div><div>This doesn't make sense to me at all. And, the database will be overwritten with a fresh copy this weekend, which will probably recreate the problem.<br></div><div>Can anyone here help me find out what is(or was) happening?<br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">Willy-Bas Loos<br></div></div>
</div></div></div>