<div dir="ltr"><div dir="ltr">As I recall, QGIS used to treat any unique int field as a suitable key for adding a layer, so that views that were registered in the PostGIS geometry_columns table could be added to the map. Now that geometry_columns is a view rather than a table, spatial views are registered automatically. They appear in the tables list in QGIS, but the primary key has to be selected manually (even if they underlying table column is a suitable primary key). <div>
<br></div><div>Perhaps I am misremembering that this step was necessary previously, but I wonder if there is any way to avoid it, e.g. by making sure the key column has a specific name, data type, etc?</div><div><br></div>
<div style>Regards,</div><div style>--Lee</div></div><br clear="all"><div><br></div>-- <br>Lee Hachadoorian<br>Asst Professor of Geography, Dartmouth College<br><a href="http://freecity.commons.gc.cuny.edu/" target="_blank">http://freecity.commons.gc.cuny.edu/</a>
</div>