luis(dot)roberto(at)siscobra(dot)com(dot)br writes:
> I'm running a query that is causing the server to segfault.
Hm, can you get a stack trace from that?
https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
regards, tom lane