Re: postmaster core dumps with SPI_repalloc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Andrey Y(dot) Mosienko" <feo(at)ttn(dot)ru>
Cc: Postgres <pgsql-general(at)postgresql(dot)org>
Subject: Re: postmaster core dumps with SPI_repalloc
Date: 2002-05-14 14:45:21
Message-ID: 25982.1021387521@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Andrey Y. Mosienko" <feo(at)ttn(dot)ru> writes:
> char* fields_names;
> ...
> SPI_repalloc(fields_names, sizeof(fields_names) + 100);

Not sure what you were expecting this to do ... but you do realize
that sizeof(fields_names) is a constant here? (Probably 4, but you
did not mention your platform.)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-05-14 14:54:16 Re: transitioning postgres oid
Previous Message Martijn van Oosterhout 2002-05-14 14:42:26 Re: Question about setval() function