Re: [PATCH] Factor out pg_malloc and friends into port code - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [PATCH] Factor out pg_malloc and friends into port code
Date
Msg-id 20130212151425.GB5901@alvh.no-ip.org
Whole thread Raw
In response to [PATCH] Factor out pg_malloc and friends into port code  (Boszormenyi Zoltan <zb@cybertec.at>)
List pgsql-hackers
Boszormenyi Zoltan wrote:
> 2013-01-02 10:12 keltezéssel, Magnus Hagander írta:

> ><mailto:zb@cybertec.at>> wrote:

> >    Actually, the unification of pg_malloc and friends wasn't dictated
> >    by this little code, it was just that pg_basebackup doesn't provide
> >    a pg_malloc implementation (only pg_malloc0) that is used by
> >    initdb's escape_quotes() function. Then I noticed how wide these
> >    almost identical functions have spread into client apps already.

> >Please do keep that one separate - let's avoid unnecessary
> >feature-creep, whether it's good or bad features.
>
> The patch is attached. There is no extra atexit() code in this one.

I have applied a patch similar in spirit to this one.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: palloc unification
Next
From: Tom Lane
Date:
Subject: Re: Documentation: references to old versions