Frank Mayhar <frank(at)exit(dot)com> writes:
> This probably depends heavily on the data I'm using and the script I
> wrote.
Yeah, probably so. Can you extract an SQL script that causes the
problem? That would make it possible to try to reproduce the failure
here, which would vastly simplify debugging.
I would assume that the CREATE TABLE command for that table, associated
CREATE INDEX commands, followed by the INSERT commands for that table
up to the point of the crash ought to do it...
regards, tom lane