Stefan Tzeggai <tzeggai(at)empirica-systeme(dot)de> writes:
> I can reproduce a segfault by executing a query.
That sounds like a bug, all right, but you've not provided enough
detail for anyone else to reproduce it. A self-contained test
case would be the best thing.
If you can't provide that, it's possible that a stack trace from
the core dump would be enough info to diagnose the problem, but
no promises ...
https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
regards, tom lane