xmalloc => pg_malloc - Mailing list pgsql-hackers

From Tom Lane
Subject xmalloc => pg_malloc
Date
Msg-id 8430.1349193733@sss.pgh.pa.us
Whole thread Raw
Responses Re: xmalloc => pg_malloc  (Andres Freund <andres@2ndquadrant.com>)
Re: xmalloc => pg_malloc  (Bruce Momjian <bruce@momjian.us>)
Re: xmalloc => pg_malloc  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
While looking around to fix the pg_malloc(0) issue, I noticed that
various other pieces of code such as pg_basebackup have essentially
identical functions, except they're called xmalloc().  I propose to
standardize all these things on this set of names:
pg_mallocpg_malloc0    (for malloc-and-zero behavior)pg_calloc    (randomly different API for
pg_malloc0)pg_reallocpg_freepg_strdup

Any objections?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed
Next
From: Andres Freund
Date:
Subject: Re: xmalloc => pg_malloc