-670 Variable variable-name declared as SERIAL or SERIAL8 or BIGSERIAL type.
The SERIAL or SERIAL8 or BIGSERIAL data type is not a legal procedure type.
Use the INTEGER or INT8 or BIGINT data type to match the SQL SERIAL or
SERIAL8 or BIGSERIAL data type.