Re: tsearch2 memory alloc checks

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: tsearch2 memory alloc checks
Date: 2003-09-28 09:28:08
Message-ID: Pine.LNX.4.21.0309280938570.8264-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Sat, 27 Sep 2003, Bruce Momjian wrote:
>
> This has been saved for the 7.5 release:
>
> http:/momjian.postgresql.org/cgi-bin/pgpatches2

Are you sure Bruce? I'd say this is bug fixing.

Although it doesn't fix the underlying cause of the fault it does cover the
specific fault generated and reported by someone. Athough that was running in
a 7.3 server I believe, this addresses the same fault in the 7.4 contrib.

>
> ---------------------------------------------------------------------------
>
> Nigel J. Andrews wrote:
> >
> > This should apply cleanly to cvs tip.
> >
> > I've not changed any malloc/calloc to palloc. It looks to me that these memory
> > areas are for the lifetime of the backend and in the interests of not breaking
> > something that's not broken I left alone.
> >
> > Note for anyone reading this and wanting it for tsearch-v2-stable (i.e. for 7.3
> > backend) this patch probably will not apply cleanly to that source. It should
> > be simple enough to see what's going on and apply the changes by hand if need
> > be.

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2003-09-28 09:41:33 Re: correct NUL vs. NULL usage
Previous Message Hiroshi Inoue 2003-09-28 09:18:11 Re: pgsql-server/src/backend catalog/index.c comma ...