On 05/18/2015 01:05 PM, Tom Lane wrote:
> Meh. You could also add "select pg_backend_pid()" or some such.
> But really, the way I generally do this is to run gdb via a script
> that auto-attaches to the right postgres process if at all possible.
> Removes the whole problem.
>
This should go on the wiki.
cheers
andrew