Re: [HACKERS] BuildTupleFromCStrings Memory Documentation?

2015-04-30 Thread Tom Lane
Jason Petersen writes: > Within the core codebase, BuildTupleFromCStrings is often called within a > temporary memory context cleared after the call. In dblink.c, this is > justified as being needed to “[clean up] not only the data we have direct > access to, but any cruft the I/O functions m

[HACKERS] BuildTupleFromCStrings Memory Documentation?

2015-04-30 Thread Jason Petersen
Within the core codebase, BuildTupleFromCStrings is often called within a temporary memory context cleared after the call. In dblink.c, this is justified as being needed to “[clean up] not only the data we have direct access to, but any cruft the I/O functions might leak”.I wrote a pretty minimal c