Unix Technical Forum

BUG #2445: incompatibility: realloc <> repalloc

This is a discussion on BUG #2445: incompatibility: realloc <> repalloc within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2445 Logged by: Email address: friedrich_sperling@web.de PostgreSQL version: 8.1.3 Operating ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:00 AM
 
Posts: n/a
Default BUG #2445: incompatibility: realloc <> repalloc


The following bug has been logged online:

Bug reference: 2445
Logged by:
Email address: friedrich_sperling@web.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.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 11:00 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2445: incompatibility: realloc <> repalloc

"" <friedrich_sperling@web.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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com