PostgreSQL – Move Sequence to a different Schema

You can use the below sql statement to move sequence to a different schema. Here seq_name is the name of the sequence and new_schema is the target schema for the sequence.

ALTER SEQUENCE seq_name SET SCHEMA new_schema;

See also  PostgreSQL - View Database Version