Renaming A Sequence
> \d
List of relations
Schema | Name | Type | Owner
--------+-----------------+----------+------------
public | accounts | table | jbranchaud
public | accounts_id_seq | sequence | jbranchaud> alter sequence accounts_id_seq rename to users_id_seq;Last updated