How to Run postgres inside gdb for debugging

Поиск
Список
Период
Сортировка
От Lee Kindness
Тема How to Run postgres inside gdb for debugging
Дата
Msg-id 15478.21106.606877.673112@kelvin.csl.co.uk
обсуждение исходный текст
Ответ на How to Run postgres inside gdb for debugging  ("Amit Khare" <khare@uiuc.edu>)
Ответы Re: How to Run postgres inside gdb for debugging  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Amit Khare writes:
 > Can any one help me running postgres inside gdb for debugging ?

The short answer is you need to tell gdb to connect to the backend
'postmaster' process which has been started for your connection - you
should able to work out its pid using ps (or more likely a simple list
in your debugger frontend).

The problem is you'll need to do this very fast - this is why postgres
has a '-W' option to tell the process to wait a defined time before
really starting up - giving you time to connect. See:

 http://www.geocrawler.com/archives/3/10/1999/4/0/1649841/

Lee.

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

Предыдущее
От: Alexander Pucher
Дата:
Сообщение: Re: Select <-> Case Insensitive
Следующее
От: Jean-Michel POURE
Дата:
Сообщение: UTF-8 lenght of a string