<div dir="ltr"><div><div><div><div>Which version of PostGIS are you using ?<br></div><br></div>You have to check to have at least select grants to the geometry_columns table (in postgis 1.5) or view (in postgis 2.0) in public schema.<br>
</div>If you can't access to this table qgis spends a lot of time in order to scan all geometries of all layer.<br><br></div><div>with PostGIS < 2.0 you also have to manually register you layer into the geometry_columns table</div>
<br>regards<br>Luca<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-28 13:38 GMT+01:00 Nico Alberti <span dir="ltr"><<a href="mailto:n8@langhirano.it" target="_blank">n8@langhirano.it</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody. I am rather new to both technnologies (Qgis and PGsql data) so sorry if the question is lame. When I try to connect to a PGsql database, everything goes fine; layers are correctly listed and I can see their geometry type and primary keys. However the "add layer" [1] is disabled: on the lower left part of QGis there is a message saying that QGis is busy scanning the "the_geom" column, and this is taking a lot of time (there are several huge datasets in that db).<br>

<br>
After the scan is over, eventually I am not able to load most of the datasets. A message states they are invalid and cannot be loaded.<br>
<br>
I know I am not giving you a lot of hints. The errors are quite generic. However when I try to connect to another PGsql database (one that I can fully manage) everything goes fine. Could the dataset be corrupted in some strange way, could they lack something that forces QGis to scan the entire geometry data?<br>

<br>
Every suggestion would be greatly appreciated. Thank you in advance.<br>
<br>
[1] messages are in Italian, as you can guess. The actual English message is probably different.<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Ciao<br>
Nico<br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</font></span></blockquote></div><br></div>