I have a problem adding new features to a Postgis database. My table has a primary key defined as
gid integer NOT NULL DEFAULT nextval('bo_gid_seq'::regclass)
When I try to add a new polygon in QGis to this layer, i can draw it, but I'm unable to save it to the database. I allways get an error:
null value in column "gid" violates not-null constraint ...
Before saving, the form shows me the nextval('bo_gid_seq'::regclass)
, but finally it seems to be ignored by the database.
The errors stays exactly the same, even when I enter a valid gid-number.
I used this feature with the same database before QGis 2.8, but with all the actual releases (2.14) I can't get it to work.
After all I wonder that there are so few threads about that problem in the net?