pgsql-bugs@postgresql.org writes:
> repeated syntax errors in plpython modules cause database to reset
Hm. Can you provide a debugger backtrace from the crash? Either look
for a core file in the database subdirectory, or attach gdb to the
running backend process before you induce the crash.
regards, tom lane