Re: stracing a connection

Поиск
Список
Период
Сортировка
От Peter Koczan
Тема Re: stracing a connection
Дата
Msg-id 46B12687.7090607@gmail.com
обсуждение исходный текст
Ответ на Re: stracing a connection  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-admin
Thank you Alvaro, it worked.

I got confused when I did it before since gdb couldn't figure out half
of the elements in the backtrace, and strace kept saying "I can't
attach", which was only because gdb was already attached to that same
process.

Peter

Alvaro Herrera wrote:
> Peter Koczan escribió:
>
>> Hi all,
>>
>> I'm running into a few problems with postgres connections, specifically
>> notify/listening connections. What program(s) should I attach to the
>> connection using gdb or strace in order to actually get some useful data?
>>
>> i.e. I'll be using something like "strace -p [pid] [command]", what should I
>> use for [command]?
>>
>
> strace -p pid
> gdb -p pid
>
> You don't need to specify the command at all.
>
>


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Benjamin Krajmalnik"
Дата:
Сообщение: Re: Deadlock
Следующее
От: David Bear
Дата:
Сообщение: incrementals with pg-dump