Re: postmaster core dumps with SPI_repalloc - Mailing list pgsql-general

From Tom Lane
Subject Re: postmaster core dumps with SPI_repalloc
Date
Msg-id 25982.1021387521@sss.pgh.pa.us
Whole thread Raw
In response to postmaster core dumps with SPI_repalloc  ("Andrey Y. Mosienko" <feo@ttn.ru>)
List pgsql-general
"Andrey Y. Mosienko" <feo@ttn.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

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Question about setval() function
Next
From: Martijn van Oosterhout
Date:
Subject: Re: transitioning postgres oid