I have a table that has a primary key which I'd like to become SERIAL (auto increment).
How to do that?
=> select * from information_schema.table_constraints where table_name='role';
constraint_catalog | constraint_schema | constraint_name | table_catalog | table_schema | table_name | constraint_type | is_deferrable | initially_deferred | enforced
--------------------+-------------------+-----------------+---------------+--------------+------------+-----------------+---------------+--------------------+----------
XXXXXXXX | public | role_pkey | XXXXXXXX | public | role | PRIMARY KEY | NO | NO | YES