Carlos Moreno <moreno_pg@mochima.com> writes:
> The problem is, when I execute the SQL statement:
> create or replace function sha1 .... ;
> for the second time (i.e., after making modifications and
> recompiling), the *backend* crashes
Getting a stack trace from that core dump might be illuminating.
Better yet, attach to the backend with gdb before you execute
the crash-triggering statement, and let gdb trap the crash.
regards, tom lane