Bug report #13638
Cannot load empty Postgis views
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21674|
Current master cannot load empty Postgis views (=view with no records), even if the user selects a primary key column.
The error message is that "PostgreSQL layer has no primary key". Note that I did select a correct and valid primary key manually.
If one loads an existing project with a reference to an empty Postgis view, the layer appears as "Missing layer".
This is a regression and worked in previous versions.
Thank you for having a look at it.