Re: Database is slow, vacuum hangs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nickf(at)ontko(dot)com
Cc: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Database is slow, vacuum hangs
Date: 2002-03-01 22:12:04
Message-ID: 1849.1015020724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Nick Fankhauser" <nickf(at)ontko(dot)com> writes:
>> If you haven't a clue, try attaching to each process with a debugger and
>> printing out the global variable debug_query_string.

> How do I do that?

Having identified the process PIDs, you can do

gdb /path/to/postgres-executable

gdb> attach PID
gdb> p debug_query_string
gdb> bt -- might as well do this while you're here
gdb> quit

This assumes you have gdb handy. There is a way to do this with adb
too, but I don't use it enough to remember.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sartorelli, Kevin 2002-03-02 05:00:21 Re: Solution - Virus Found in Mail
Previous Message Nick Fankhauser 2002-03-01 21:47:48 Re: Database is slow, vacuum hangs