Feature request #2107
Classify vector features shouldn't default to gid on postgis features
|Pull Request or Patch supplied:||Resolution:||wontfix|
|Easy fix?:||No||Copied to github as #:||12167|
To reproduce, add any postgis layer, open layer properties, click on symbology, select "Unique Value" as the legend type. The default classification field is the gid which isn't a reasonable choice. I accidentally clicked the classify button without thinking on a very large postgis layer and it almost brought my machine down.
#2 Updated by Brian Edmond over 10 years ago
Replying to [comment:2 jef]:
it's just starting with the first field. What would be the alternative?
Well, you could calculate the number of features that will be classified and warn that it will take a long time if there are more than x number of features. I'm not sure what the threshold would be, but it would stop the application (and maybe someone's computer) from freezing up.