How to check if a column is auto increment in postgresql. products ADD COLUMN id SERIAL PRIMARY KEY; 2.