Re: how to debug into InitPostgres() and InitCatalogCache()?
В списке pgsql-hackers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: how to debug into InitPostgres() and InitCatalogCache()? |
| Дата | |
| Msg-id | 20140806023727.GG9388@eldon.alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: how to debug into InitPostgres() and InitCatalogCache()? (土卜皿 <pengcz.nwpu@gmail.com>) |
| Список | pgsql-hackers |
土卜皿 wrote:
> 2014-08-05 22:08 GMT+08:00 土卜皿 <pengcz.nwpu@gmail.com>:
>
> > hi, all
> > I already can debug general postgres using "ddd" and "select
> > pg_backend_pid();" , now, I want to study the details of the system
> > catalog cache and system cache management, so I need to debug the function
> > InitPostgres() and InitCatalogCache(), and I tried the following steps:
> For debug initialization including system catalog cache, I add some code
> like:
>
> bool forDebug = true;
>
> while (forDebug){
> forDebug = true;
> }
>
> in the InitPosgres()'s starting position.
There's also the -W switch, which makes it wait precisely to let you
attach a debugger.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера