The exact problem is that you can't use nextval() with an INSERTable VIEW
Problem is the same as that in this post:
http://archives.postgresql.org/pgsql-sql/2003-07/msg00333.php
On 5/3/07, Richard Broersma Jr <rabroersma@yahoo.com> wrote:
>
> --- Collin Peters <cadiolis@gmail.com> wrote:
>
> > I am having the same problem that is documented elsewhere in the
> > archives. Namely when you have a INSERT RULE on a VIEW the nextval()
> > function doesn't behave properly (or it doesn't behave how I'd like it
> > to).
> >
> > http://archives.postgresql.org/pgsql-sql/2003-07/msg00333.php
> >
>
> Is your problem that you can't insert more than one record at a time into your INSERTable VIEW?
>