Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the field list in layer.dataProvider().forceReload() #24341

Closed
qgib opened this issue Apr 10, 2017 · 2 comments
Closed

Update the field list in layer.dataProvider().forceReload() #24341

qgib opened this issue Apr 10, 2017 · 2 comments
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Apr 10, 2017

Author Name: Borys Jurgiel (@borysiasty)
Original Redmine Issue: 16432

Redmine category:data_provider


Once you load e.g. postgis table into QGIS, there is no way to reload its fields (e.g. after adding a column via psycopg or other concurrent connection), except reloading the whole project of course. The layer.dataProvider().forceReload() assumes the fields structure is constant and only reloads the records.

I noticed it when working with PostGIS, but I suspect it's a provider-independent issue.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Oct 24, 2018

Author Name: Borys Jurgiel (@borysiasty)


layer.setDataSource() can be used instead


  • resolution was changed from to wontfix
  • status_id was changed from Open to Closed
  • description was changed from Once you load e.g. postgis table into QGIS, there is no way to reload its fields (e.g. after adding a column via psycopg or other concurrent connection), except reloading the whole project of course. The layer.dataProvider().forceReload() assumes the fields structure is constant and only reloads the records.

I noticed it when working with PostGIS, but I suspect it's a provider-independent issue. to Once you load e.g. postgis table into QGIS, there is no way to reload its fields (e.g. after adding a column via psycopg or other concurrent connection), except reloading the whole project of course. The layer.dataProvider().forceReload() assumes the fields structure is constant and only reloads the records.

I noticed it when working with PostGIS, but I suspect it's a provider-independent issue.

@qgib qgib closed this as completed Oct 24, 2018
@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@qgib qgib added this to the Version 3.0 milestone May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant