I am using postgresql 9.4. I want to change existing primary key with serial. My query is not working. Anybody know how to do this?
Alter table 'table_name' alter column id BIGSERIAL;
There should be a single query to modify a particular column. I didn't see that