I noticed this really inefficient query when QGIS was importing a Postgis layer:<div><div><b><font class="Apple-style-span" face="'courier new', monospace">select distinct case when geometrytype("the_geom") IN ('POINT','MULTIPOINT') THEN 'POINT' when geometrytype("the_geom") IN ('LINESTRING','MULTILINESTRING') THEN 'LINESTRING' when geometrytype("the_geom") IN ('POLYGON','MULTIPOLYGON') THEN 'POLYGON' end from [databaseGoesHere]</font></b></div>

</div><div><br></div><div>That surprised me because QGIS should already know the <b>geometrytype </b>through the <b>geomerty_columns</b> table.</div><div><br></div><div>Is this really QGIS's fault, or did Postgis cause/require this? Want to make sure before I file a bug report.</div>

<div><br></div><div>Thanks,</div><div><br></div><div>Aren</div>