Thomas Hallgren <thhal(at)mailblocks(dot)com> writes:
> .... The callback is called OK but when it calls SPI_finish I get
> an illegal memory access signal.
>From where?
Minimum respect for the time of your fellow hackers would suggest
including a gdb traceback in questions like this.
regards, tom lane