Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Attach to the backend with gdb. Then you can get a backtrace, esp. if
> you've built with --enable-debug.
>
> It may be helpful to use lsof to figure out which backend your psql
> session is connected to.
select backend_pid();
is pretty handy for this. Though if you have the backend crashing on every
plan it may not help...
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!