<p dir="ltr">Is your database spatially enabled ? Try to run 'create extension postgis;" in pgadmin.</p>
<p dir="ltr">Bests,</p>
<p dir="ltr">Olivier</p>
<div class="gmail_quote">On Feb 27, 2015 8:08 AM, "Otto Dassau" <<a href="mailto:dassau@gbd-consult.de">dassau@gbd-consult.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I cannot login to a postgis database with QGIS as a normal user 'testuser'.<br>
But I can login with psql and using pgadmin3.<br>
<br>
CREATE ROLE testuser LOGIN<br>
  NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;<br>
<br>
I get following error in QGIS:<br>
<br>
CET ERROR:  function postgis_version() does not exist at character 8<br>
CET HINT:  No function matches the given name and argument types. You might<br>
need to add explicit type casts.<br>
CET STATEMENT:  SELECT postgis_version()<br>
<br>
If I create another user as SUPERUSER I can login without problems. What<br>
could be the reason for this?<br>
<br>
Thanks a lot<br>
Otto<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>