Skip site navigation (1) Skip section navigation (2)

xmalloc => pg_malloc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: xmalloc => pg_malloc
Date: 2012-10-02 16:02:13
Message-ID: 8430.1349193733@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: 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_malloc
	pg_malloc0	(for malloc-and-zero behavior)
	pg_calloc	(randomly different API for pg_malloc0)
	pg_realloc
	pg_free
	pg_strdup

Any objections?

			regards, tom lane


Responses

pgsql-hackers by date

Next:From: Peter GeogheganDate: 2012-10-02 16:05:49
Subject: Re: pgsql: Disable _FORTIFY_SOURCE with ICC
Previous:From: Bruce MomjianDate: 2012-10-02 15:58:57
Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group