[Qgis-user] QGIS 2.10.1 adding PostGIS Views
Luca Lanteri
lklanteri at gmail.com
Tue Sep 1 07:02:41 PDT 2015
2015-08-06 20:58 GMT+02:00 Jürgen E. <jef at norbit.de>:
> Hi Randal,
>
> On Thu, 06. Aug 2015 at 13:53:08 -0400, Randal Hale wrote:
> > In 2.8.x I can add the view and the Primary key is automatically
> displayed.
>
> No, you're supposed to select the primary key. In 2.8.x you also have to
> choose from all columns, but first one is preselected. If that happens to
> be
> the primary key, you're fine, but that's not always the case and hence
> newer versions force you to actually select it.
>
>
Indeed I think is a good habit to organize the views to always have the gid
as the first field in order to avoid the problem of choose the right PK
column.
Now qgis already warns if the column is not suitable as a PK. Probably I
miss something but I really can't understand the improvement of the new
behavior.
Thanks for your patience and for the nice work with QGIS.
Luca
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150901/1a753fbc/attachment.html>
More information about the Qgis-user
mailing list