Rusty Conover <rconover(at)infogears(dot)com> writes:
> LOG: execute <unnamed>: insert into bar (id, a) select id, $1 from foo
> DETAIL: parameters: $1 = '5'
> TRAP: FailedAssertion("!(n < list->length)", File: "list.c", Line: 392)
> LOG: server process (PID 21539) was terminated by signal 6
This looks like an already-reported bug in BIND processing:
http://archives.postgresql.org/pgsql-committers/2006-10/msg00107.php
regards, tom lane