Autoincrement SQL

Извините за картинку, но так выглядит моя таблицавведите сюда описание изображения

Если я хочу добавить новую строку в доску cat, то дефолтный id получается 4, но должен быть 3. Как это исправить?

Мой код таблицы

create table threads
(
    id          serial     not null default nextval('threads_id_seq'::regclass),
    board       varchar(5) not null
        constraint board_id_fk
            references boards
            on update cascade on delete cascade,
    subject     text,
    message     text       not null,
    attachments jsonb,
    timestamp   timestamp with time zone,
    constraint threads_board_id_key
        unique (board, id)
);

Ответы (0 шт):