Re: Console Output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Console Output
Дата
Msg-id 23102.1337173458@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Console Output  (Alejandro Barragan <alex.barragan@gmail.com>)
Список pgsql-novice
Alejandro Barragan <alex.barragan@gmail.com> writes:
> Hi, I am starting to mess around with PostgreSQL source code and wanted to
> print some information to console in relation to pages.  I see that the
> buffer manager (specifically in bufmgr.c) is the best place to access this
> information and I believe I know where I would like to place my code.  Is
> there an easy way to just print this information to a console?  I am pretty
> new at this type of modification so any help would be greatly appreciated

elog(LOG, ...) is a pretty common way of pushing quick-hack debug output
to the postmaster log.  Depending on how you've got the postmaster's log
output configured, plain old fprintf(stderr, ...) might work as well for
slightly less overhead.

            regards, tom lane

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

Предыдущее
От: Francisco Leovey
Дата:
Сообщение: Re: How to select by proximity
Следующее
От: "Ilija Vidoevski"
Дата:
Сообщение: remote connection problem