2

I'm adding new features to a polygon datasets in QGIS. The data is held in PostGIS but when i have a look at the attribute table for the polygon the gid field is not automatically updating, the entry reads NULL

I'm editing under the postgres login which looking at the sequeneces in PGadmin says that

ALTER TABLE parking_enforcement.restrictions_gid_seq OWNER TO postgres;

Is there anything special that i need to be doing in Postgres?

2

1 Answer 1

4

I'm guessing your gid column is not a serial or doesn't have a default value set to nextval(..).

http://www.postgresql.org/docs/9.0/interactive/datatype-numeric.html#DATATYPE-SERIAL

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.