A table was created in Postgresql and several values were added to it.
CREATE TABLE games(
id serial PRIMARY KEY,
name text NOT NULL UNIQUE
);
INSERT INTO games (id, name) VALUES
(1, 'Dune 2'),
(2, 'Supaplex'),
(3, 'SimCity');
Then we add a 4th entry without specifying an id:
INSERT INTO games (name) VALUES ('Worms');
What will happen after that?
The serial type is not a true type. When a serial column is created, a sequence is automatically created.
When manually adding a number value to the id column, the value of the sequence does not change!