"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