Re: [GENERAL] How to debugging a an external C function(IMMUTABLE STRICT )

2012-02-26 Thread Tom Lane
Dave Potts writes: > I have written an external C function to be called by postgres called > using the LANGUAGE 'C' IMMUNTABLE STRICT interface > Most of the time when call it, I get the expected results. Some times I > get random rubbish in the result set. > If there any debug support in Postgre

[GENERAL] How to debugging a an external C function(IMMUTABLE STRICT )

2012-02-26 Thread Dave Potts
Hi I have written an external C function to be called by postgres called using the LANGUAGE 'C' IMMUNTABLE STRICT interface Most of the time when call it, I get the expected results. Some times I get random rubbish in the result set. Postgres always gets the type of the arguments correct, ie it