Dimitri Fontaine <dimi...@2ndquadrant.fr> writes: > Tom Lane <t...@sss.pgh.pa.us> writes: >> Namely, that on platforms where malloc(0) returns NULL instead of >> a pointer to a zero-size block, pg_malloc thinks it's a failure >> and aborts the program.
> What's the use case for malloc(0) anyway? See getAggregates() for an example. Yeah, we could add a special-case code path for no aggregates, but it would be annoying and error-prone. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers