AllocSetStats uses fprintf instead of elog

Started by Zdenek Kotalaabout 18 years ago2 messages
#1Zdenek Kotala
Zdenek.Kotala@Sun.COM

Function AllocSetStats uses fprintf instead of standard logging method.
Is there any reason for it? If not I will rewrite it to use
elog(NOTICE,..) instead.

Zdenek

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Zdenek Kotala (#1)
Re: AllocSetStats uses fprintf instead of elog

Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:

Function AllocSetStats uses fprintf instead of standard logging method.
Is there any reason for it?

Yes: it's typically called in zero-free-memory situations, and we don't
want to depend on elog() succeeding to be able to find out what happened.

regards, tom lane