On 12/27/10 11:00 PM, aaliya zarrin wrote:
> Sorry, My application is using the postgres DB but the another
> application is giving the command to run in standby or active mode.
> I can't use gdb I beleive.
gdb just needs the PID of the process to attach to, you can get that
from ps or via other methods.
http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD#Attaching_gdb_to_the_backend