Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
QGIS crashes with PostgreSQL views #29673
Author Name: Pietro Rossin (Pietro Rossin)
Qgis 3.4.6 doesn't load a postgis view without an id and a geometry field (attributes only). DbManager says that the layer is invalid and cannot be loaded.
3.6.1-Noosa load the same view but crashes if I open the attribute table (crash report below).
The problem is solved if I add a counter column with
SELECT row_number() OVER () AS id,
Crash ID: 90077a9c9e70291cbc7f1009d8c0fddfd432457a
Author Name: Giovanni Manghi (@gioman)
Pietro Rossin wrote:
as far as I remember it was never possible to add a view without adding a column like you say
SELECT row_number() OVER () AS id
I confirm the crash on 3.6.1 also on Linux.
In my case QGIS 3.6.1 crashes while try opening the table or properties of such table, but if the view contains also a geom column then QGIS crashes when trying to add the layer to the project.