Hi,
There are 70+ calls of malloc in the backend in the form of
type* foo = malloc(sizeof(...));
if(!foo) elog(ERROR, "could not allocate memory");
which is a bit annoying to write at times. Would somebody argue against
introducing a function that does the above named xmalloc() or malloc_or_die()?
Greetings,
Andres
-- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services