Re: more on out-of-memory

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: more on out-of-memory
Date: 2009-04-07 07:27:57
Message-ID: 49DB007D.7000108@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:
> His question was: is it possible that we're handing a NULL pointer to a
> %s on fprintf? The involved code looks like this:
>
> fprintf(stderr,
> "%s: %lu total in %ld blocks; %lu free (%ld chunks); %lu used\n",
> set->header.name, totalspace, nblocks, freespace, nchunks,
> totalspace - freespace);

Note that glibc prints "(null)" if you pass NULL for %s. Others don't.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-04-07 08:21:25 Re: More message encoding woes
Previous Message David Fetter 2009-04-07 05:51:22 Re: Closing some 8.4 open items