Alejandro Barragan <alex.barragan (AT) gmail (DOT) com> writes:
Quote:
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
--
Sent via pgsql-novice mailing list (pgsql-novice (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice