Michael Rowan <mike(dot)rowan(at)internode(dot)on(dot)net> wrote:
> PostgreSQL 8.4.4.1
> Can someone pls confirm that, provided I am doing it right, I can insert a row into a table where the primary key is serial NOT NULL and a (unique) value is provided in the offered data? I cannot see an answer to this specific point in the docs.
Sure, just try it. You only need to make sure that after
your insertion the corresponding sequence will not collide
with your data, e. g., you will have to setval() the se-
quence to MAX(value) (+ 1?).
Tim