BUG #2445: incompatibility: realloc <> repalloc

Lists: pgsql-bugs
From: "" <friedrich_sperling(at)web(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2445: incompatibility: realloc <> repalloc
Date: 2006-05-19 22:00:27
Message-ID: 200605192200.k4JM0RXU049735@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2445
Logged by:
Email address: friedrich_sperling(at)web(dot)de
PostgreSQL version: 8.1.3
Operating system: Debien GNU/Linux Etch
Description: incompatibility: realloc <> repalloc
Details:

it seems that there is a little difference in the handeling of standard
library's realloc and the postgresql repalloc functions, which might be
inconvenient.
if the realloc funtion receives a NULL pointer as first argument, it works
just like the malloc function,
whereas the repalloc function crashes the server.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "" <friedrich_sperling(at)web(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2445: incompatibility: realloc <> repalloc
Date: 2006-05-21 21:46:34
Message-ID: 9953.1148247994@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"" <friedrich_sperling(at)web(dot)de> writes:
> it seems that there is a little difference in the handeling of standard
> library's realloc and the postgresql repalloc functions, which might be
> inconvenient.

It's intentional, however.

regards, tom lane