I'm using QGIS 2.10 and DB Manager plugin.

I regularly use this plugin to display tables from a PostgreSQL - PostGIS database. I particularly use the integrated SQL Window to filter a table's content with a SQL query. Then, in order to display the query's result in the QGIS map canvas, it is asked to specify Column with unique integer value and Geometry column (see screenshot below). These parameters are automatically filled with a column name and I have to change the values to gid and the_geom each time I use this...

Is there a way to specify default values for these parameters, as gid and the_geom are always the columns to be used for every table in my database?

enter image description here

1 Answer 1


Just tried QGIS 2.14.4 and DB Manager seems to keep in memory last field names selected for Column with unique values and Geometry column parameters!

The solution is simple then: upgrade!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.