"David G. Johnston" <david.g.johnston@gmail.com> writes:
> The create table for party probably helps too.
I'm wondering about ON INSERT rules for that table ...
> IOW, make it possible for someone to reproduce your issue.
Indeed. I tried some simple experiments with setting a breakpoint
on the standard nextval() function, and I don't see more than one
call.
regards, tom lane