On 2015-04-07 04:07:56 +0000, antoine(at)goutenoir(dot)com wrote:
> Example, say Article has `id` as primary key :
How is that table defined? Restart identity will only work if the
sequence is 'owned' by the id column. That happens if you either create
it by specifying 'serial' as the column type, or if you explicitly use
ALTER SEQUENCE ... OWNED BY table.col;
Greetings,
Andres Freund