dbTalk Databases Forums  

[NOVICE] Console Output

mailing.database.pgsql-novice mailing.database.pgsql-novice


Discuss [NOVICE] Console Output in the mailing.database.pgsql-novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alejandro Barragan
 
Posts: n/a

Default [NOVICE] Console Output - 05-15-2012 , 12:07 PM






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

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [NOVICE] Console Output - 05-16-2012 , 08:04 AM






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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.