Ferruccio Zamuner <nonsolosoft@diff.org> writes:
> Is this a bug?
No, but it is a missing feature: there's no way to reset a sequence's
is_called flag once it's been set. This is fixed for 7.1: there's now
a three-parameter variant of setval() to let you do exactly that.
regards, tom lane