Cory Albrecht <coryca(at)gmail(dot)com> writes:
> Also, which PID do I attach GDB to?
> If it's the individual database ones like 15947 or 15990 in the
> above example, I have no way of knowing which one will get a SIGBUS. Is the
> main process (e.g. 15892) OK?
If you don't know that, the best way is to collect a core file and
then gdb that. Starting the postmaster under "ulimit -c unlimited"
ought to be enough.
regards, tom lane