Re: C Function Memory Management

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Martin French <Martin(dot)French(at)romaxtech(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C Function Memory Management
Date: 2012-12-12 10:33:14
Message-ID: CAFj8pRBeU_ypj_kQairOJXV1yVyvTDJ_bx2HAw6w7Of1nA-7dQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

2012/12/12 Martin French <Martin(dot)French(at)romaxtech(dot)com>:
> Ok, so just a (hopefully) quick question.
>
> I know that I should be using the Postgres function palloc in place of
> malloc, but what about realloc? Is there an equivalent?

yes,

repalloc

Regards

Pavel Stehule

>
> Thanks.
> =============================================
>
> Romax Technology Limited
> Rutherford House
> Nottingham Science & Technology Park
> Nottingham,
> NG7 2PZ
> England
>
> Telephone numbers:
> +44 (0)115 951 88 00 (main)
>
> For other office locations see:
> http://www.romaxtech.com/Contact
> =================================
> ===============
> E-mail: info(at)romaxtech(dot)com
> Website: www.romaxtech.com
> =================================
>
> ================
> Confidentiality Statement
> This transmission is for the addressee only and contains information that is
> confidential and privileged.
> Unless you are the named addressee, or authorised to receive it on behalf of
> the addressee
> you may not copy or use it, or disclose it to anyone else.
> If you have received this transmission in error please delete from your
> system and contact the sender. Thank you for your cooperation.
> =================================================

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin French 2012-12-12 11:03:35 Re: C Function Memory Management
Previous Message Martin French 2012-12-12 10:25:44 C Function Memory Management